6 ms·
> Why are we using C anyhow? Because "cc prog.c; ./a.out" offers you the most direct way to interact with your system. Because "man 2 mmap" documents a C API.
by bluetomcat 27d ago
> Why are we using C anyhow?
Because "cc prog.c; ./a.out" offers you the most direct way to interact with your system. Because "man 2 mmap" documents a C API. Because "nm" lists your functions and global variables with the exact same names as the C program.
The relative "lack of features" in comparison to its "better" alternatives is what makes it preferable. It lets you concentrate on the inherent complexity of the problem you are solving, and not on the opinions of vocal people online.
- xigoi 25d ago> Because "cc prog.c; ./a.out" offers you the most direct way to interact with your system. Except for anything more complex than a hello world program, it needs to be something like cc -Wall -Wextra -Werror -O3 -lm -lfoo -lbar -fsanitize -fno-nasal-demons -o prog prog.c src/one.c src/two.c src/three.c src/four.c src/subdir/something.c