4 ms·
C is pretty much the only language in common use for programming microcontrollers. Microntrollers seldomly have filesystems. To break the language on systems wi
by skrebbel 4y ago
C is pretty much the only language in common use for programming microcontrollers. Microntrollers seldomly have filesystems. To break the language on systems without filesystems or terminals means to break the software of pretty much every electronics manufacturer out there.
- varajelle 4y agoBut you don't run the compiler on a computer without a file system. How would #include works otherwise?
- ithkuil 4y agoIt may have no filesystem but it's extremely likely it has 8 bit bytes
- josephcsible 4y agoCHAR_BIT != 8 on a lot of systems: https://stackoverflow.com/q/2098149/7509065 https://stackoverflow.com/q/2098149/7509065
- ithkuil 4y agoYeah, if the number of platforms using an obscure corner of the spec were exactly zero, we wouldn't be talking about whether the niche size is worth the hassle. My point was that this niche doesn't cover the entirety of the embedded / IoT space.
- varajelle 4y agoThinking of it, JavaScript is a language that target mainly browser, which also doesn't have a filesystem.
- dleslie 4y agoWeb requests are its filesystem.
- iainmerrick 4y agoSure, but you don’t typically run the compiler on the microcontroller! It’s the host that needs a filesystem, not the target.
- skrebbel 4y agoOf course, I can't see a reason why #embed wouldn't be useful for microcontrollers. In fact, I imagine it's a key target market for a feature like that, resource managers are complex and tools like bin2c have always felt like a terrible back. I was solely replying to the commenter who said that all reasonable modern systems have filesystems so I put one in for the embedded software developers.
- makapuf 4y agoThis feature is precisely very useful when you don't have a filesystem to read data from at runtime. Embedding it to the binary to flash it is so much simpler with this.