News for hackers. Stuff that matters.
Re:Embedding files in C programs with koio by planteen on Wednesday May 30, 2018 @04:52PM (#17191661)
Yes and that is the better way to do it. Compiling an enormous C file is slow. Many compilers have low limits (around 50 MB or so) but gcc has a huge limit. But even on gcc, a large file slows down the build process significantly.
Re:Embedding files in C programs with koio by jandrese on Wednesday May 30, 2018 @05:12PM (#17191841)
More importantly gcc's memory requirements balloon quickly as the size of the file grows. There are projects that can't be built on platforms like a Raspberry Pi simply because some of the source files (typically heavily templated C++ code) blow out the memory. A good example is Firefox.