C compiler written in java
I want to integrate a c language compiler in to java application to compile c 开发者_运维技巧sources without file creation (Like Java Compiler Api). Is there any c compiler that has entirely written in java?
You can check this link from Google Code C compiler written in Java
and say congratz to the developer :) -it's not me :p-
Another option is this one: JCPP
ANTRL has a grammar for C. The problem of generating assembly code for a particular platform isn't solved for you, but you can walk the AST and emit the instructions provided you know what they should be.
精彩评论