[text] 1032 8 CANES Pl a Y rlearnprogramming b YRR What is the best way to compile C programs with millions of lines have a C program just wrote that has over 21 million lines of code all on one text file. Im using g on a Mac with XCode installed and as type this post out my program is still compiling. Clang is using 1 thread while Code Helper is using 26. Firefox is using 97. Im thinking that the compiler Im using is not well optimized for multithreading. 2RV N7 C oS e Award uChumbaCasino V Promoted PlayOnli ociMo for free with Chumba TRedm your free welcome bonus now. chumbacasino.com Play Now Q BEST COMMENTS v L g dmazzoni 8h 0 Not sure if this is a joke or not but routinely work with C code with 20M lines of code. Heres how we handle that in practice Dont put the whole program in one file. C cant parallelize compiling one file but if you can split your program into 1000 files there are lots of build systems that will compile as many files as possible in parallel. There are tools like distcc that help you use multiple computers to compile in parallel It sounds like you dont actually have 20M lines of actual code really 99.99 of that is just data. Theres no reason data needs to be run through a C compiler. The easiest solution is to just Add a comment V
in Backend, Frontend, Linux, Programming