by genop · 10y ago · 0 comments
[x] Strongly agree [ ] Agree [ ] Neutral [ ] Disagree [ ] Strongly disagree
For me, C, i.e., GCC, is most useful as a faster way to generate assembly for a particular CPU than typing it out from scratch. I use GCC as a code generator. I'd like to see more free asm code generators, but I am not holding my breath.
I do appreciate C as a medium for distributing reasonably efficient software.
1. Write some C
2. Dump the corresponding assembly code
3. Modify the code by hand
5. Load into assembly debugger
6. Learn
There is "C", the language, which can be relatively simple. Or hopelessly opaque depending on the author.
I think of C the language as just a shorthand for assembly. Only because that's how I use it.
http://www.lysator.liu.se/c/bwk-tutor.html
But then there is "C" in practice: the specifications, the "standard" libraries, preprocessors, Makefiles, autoconf, etc.