News for hackers. Stuff that matters.
Re:Maximal Min() and Max() by dfox on Thursday August 08, 2024 @06:41PM (#41197157)
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.
Re:Maximal Min() and Max() by CGamesPlay on Thursday August 08, 2024 @10:37PM (#41198382)
Well, the #includes are hiding quite a few lines underneath them. While probably not 100k, I wouldn’t be surprised if it was, say, 20k.
Re:Maximal Min() and Max() by 1718627440 on Saturday August 10, 2024 @06:46AM (#41208612)
On my computer this only results in 1828 lines.

(tested with `gcc -E - | wc -l`)