用Java实现的编译器。把源代码编译成SPARC汇编程序

源代码在线查看: cpf.dcf

软件大小: 1109 K
上传用户: junjie_x
关键词: SPARC Java 编译器 源代码编译
下载地址: 免注册下载 普通下载 VIP

相关代码

								class Program {				  				  void main() {				    int a, b, c, d, e;									    a = 3;				    callout("writestring","B?");				    b = callout("readint");				    				    c = a + 2; // constant prop & fold				    c = c + b; // constant prop								    if (b < 4) {				      a = b;				    }								    a = a + a; // Nothing should happen here				    d = 64;				    				    callout("printf", "a: %d\n", a);				    callout("printf", "b: %d\n", b);				    callout("printf", "c: %d\n", c);				    callout("printf", "d: %d\n", d);								  }				}				      				    							

相关资源