开发者

C compiler written in java

开发者 https://www.devze.com 2023-03-11 00:51 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消