in , , ,

21,000,000 line odd/even number checker.

21,000,000 line odd/even number checker. | programming-memes, code-memes, computer-memes, program-memes, c++-memes, lines of code-memes, threading-memes, data-memes, xcode-memes, c-memes, compiler-memes, IT-memes, firefox-memes, mac-memes, comment-memes | ProgrammerHumor.io
programming-memes, code-memes, computer-memes, program-memes, c++-memes, lines of code-memes, threading-memes, data-memes, xcode-memes, c-memes, compiler-memes, IT-memes, firefox-memes, mac-memes, comment-memes | ProgrammerHumor.io

Content

10:32 A A 1 ON 948 rlearnprogramming ev 11h What is the best way to compile C programs with millions of lines? Topic I have a C program I just wrote that has over 21 million lines of code all on one text file. I’m using g on a Mac (with XCode installed) and as I type this post out my program is still compiling. Clang is using 1 thread while Code Helper is using 26. Firefox is using 97. I’m thinking that the compiler I’m using is not well optimized for multi-threading. Share . Award uChumbaCasi Promoted Pla Only Social Casino for free with Chumba CHUMBA Casi Red am your free welcome bonus now. CASINO chumbacasino.com Play Now BEST COMMENTS v -. dmazzoni 8h Not sure if this is a joke or not, but I routinely work with C code with 20M lines of code. Here’s how we handle that in practice: Don’t put the whole program in one file. C can’t 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 don’t actually have 20M lines of actual code really 99.99 of that is just data. There’s no reason data needs to be run through a C compiler. The easiest solution is to just Add a comment