Compiler in C
Compiler in C
We wrote a small C compiler in a class I took last year. It is quite possible to do so, but we just compiler to an assembler format. If you want to actually make a compiler though, your c code will have to generate Op-Codes. Does it need an assembler too, or are you just wanting a compiler to convert your code to assembly? If you want just a simple answer, symbol tables, lexical analyzer, etc, I have code examples in Java, which you could convert to C pretty quickly