Comment by skrebbel

3 years 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.

Sure, but you don’t typically run the compiler on the microcontroller! It’s the host that needs a filesystem, not the target.

  • Of 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.

But you don't run the compiler on a computer without a file system. How would #include works otherwise?

This 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.