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

源代码在线查看: 13-ifs.dcf

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

相关代码

				class Program				{				    boolean not2(boolean a)				    {				        boolean b;				        				        b = true;				        if (a) {				            b=false;				        }				        				        return b;				    }								    void phw(boolean a,boolean b,boolean c,boolean d,boolean e,boolean f,					     boolean g,boolean h,boolean i,boolean j )				    {    				        if (a) {				            callout("printf","H");				            if (b) {				                callout("printf","e");				                if (c) {				                    callout("printf","l");				                    if (d) {				                        callout("printf","l");				                        if (e) {				                            callout("printf","*");				                        }				                        if (not2(e)) {				                            callout("printf","o");				                        }				                    }				                    if (not2(d)) {				                        callout("printf","*");				                    }				                }				                if (not2(c)) {				                    callout("printf","*");				                }				            }				            if (not2(b)) {				                callout("printf","*");				            }				        }								        if (not2(a)) {				            callout("printf","*");				        }								        callout("printf"," ");								        if (not2(f)) { callout ("printf","*"); }				        					if (g) { 				            if (not2(h)) { 					        callout("printf","W"); 				                if (i) { 						    callout("printf","o");				                    if (j) { callout("printf","r"); }				                }				            }				        }				        if (not2(g)) {				            callout("printf","*");				        }   				    				        callout("printf","l");				        callout("printf","d");				    }				 				    void main()				    {				        callout("printf","[");				        phw(true,true,true,true,false,true,true,false,true,true);				        callout("printf","]");				        callout("printf","\n");								        if (2 > (3 - 5)*2)					{				            callout("printf","should be here\n");									    if (2 > 5)					    {				                callout("printf","should not be here\n");					    }					    else					    {				                callout("printf","should be here\n");					    }					} 									else 					{				            callout("printf","should not be here\n");					}				     				    }								}											

相关资源