159
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 18 Nov 2026
159 points (98.8% liked)
Programmer Humor
34316 readers
1496 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS
After having done C in an x64 Linux environment using only
clang, I was... Flabbergasted? At the myriad of components required to compile for this little piece of shi... I mean piece of wonderful hardware called ARM. 🥰🤣😱I mean, you're compiling for a different architecture and bare metal. Yeah, it'll require quite a few different packages from what you typically use. 😊
Tell that to me two days ago 🤣
The toolchains used to compile code for embedded systems have always been very hard to use. They don't do that on purpose, but I guess it's because they are mostly into the hardware side of things, and they don't follow good practices for the software, like writing useful scripts or functions.
Most of the time it's a bunch of scripts that you have to run in a mystical order to create an environment that can build something. I don't blame them, but they don't care about polishing stuff because "it works on their machine."
I'd argue it's very polished in the Pico SDK. Install a few well defined packages needed for compilation, add three lines to your CMakeLists.txt and a provided script to your repository and it'll sort out the rest.
i mean, compiling for linux you’re skipping a lot of shared things because you’ve got the kernel.. compiling for a microcontroller your binary is everything there is. if you had to compile the linux kernel and shared libs every time you compiled a single app you’d be amazed at how fast microcontrollers compile :p
Haha, yeah, it just hit me that the program I'm compiling doesn't have any environmental support whatsoever once it's shoved on to the microprocessor, so I guess it's natural having to "bake in" a lot of other stuff at compilation. Thanks! ˆˆ
I'm pretty sure you can just write valid ARM/RISC machine code at the right flash address by hand and it will just work. Might be a bit inconvenient, of course. But I've done a bit of that on other ARM chips. Even in the 21st century, sometimes the quickest way to get results is typing in the hex codes for "write 42069 into r0 and jump to that function, then see if the function spits out the funny number".