Compiler in C

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nick

Compiler in C

Post 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
Post Reply