5 ms·
8272 lines of code in a single file. I guess you could talk about coding standards and code smells all day, but let's not. I'm impressed.
by vodou 4y ago
8272 lines of code in a single file.
I guess you could talk about coding standards and code smells all day, but let's not. I'm impressed.
- winrid 4y agoThis is pretty common in the C world. Look up the source code of common Unix utils, too, or a popular game... LS [0], WolfensteinET (idtech3) [1] [0] https://github.com/wertarbyte/coreutils/blob/master/src/ls.c https://github.com/wertarbyte/coreutils/blob/master/src/ls.c [1] https://github.com/etlegacy/etlegacy/blob/master/src/game/g_main.c https://github.com/etlegacy/etlegacy/blob/master/src/game/g_...
- stargrazer 4y agosqlite has the option of a single file build. They found that the compiler can optimize best within one compilation unit.