3 ms·
The effects of preprocessor in C are quite significant. Old DOS Turbo C had shown amount of lines compiled and the speed in the compilation progress window in t
by dfox 2y ago
The effects of preprocessor in C are quite significant. Old DOS Turbo C had shown amount of lines compiled and the speed in the compilation progress window in the IDE. IIRC straight
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char**argv){
puts("hello, world");
return EXIT_SUCCESS;
}
came to something ridiculous on the order of 100k lines.
- CGamesPlay 2y agoWell, the #includes are hiding quite a few lines underneath them. While probably not 100k, I wouldn’t be surprised if it was, say, 20k.
- 1718627440 2y agoOn my computer this only results in 1828 lines. (tested with `gcc -E - | wc -l`)