4 ms·
Ummm... using compiler to dump the assembly of basic c program: #include <stdio.h> main () { } results in around 800k - 1.5mill individual lin
by sargstuff 4y ago
Ummm... using compiler to dump the assembly of basic c program:
#include <stdio.h>
main ()
{
}
results in around 800k - 1.5mill individual lines of assemble necessary to do bookkeeping before/after the program runs.
Writing this for each specific os / hardware situation (even in general case), would seem like a big waste of time vs. having the compiler generate it.
- analognoise 4y agoTry adding -nostdlib, right? You can tell the compiler to do none of the standard bookkeeping (someone who actually writes OSes will probably correct me)
- sargstuff 4y agoyeah. :-)