Page 1 of 1

Compiler in C

Posted: Mon Jul 14, 2003 11:00 pm
by nick
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