gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - added output of options used in the generated files
authorDoni Pracner <quinnuendo@gmail.com>
Wed, 20 Apr 2016 18:21:40 +0000 (20:21 +0200)
committerDoni Pracner <quinnuendo@gmail.com>
Wed, 20 Apr 2016 18:21:40 +0000 (20:21 +0200)
src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java

index 233d5ae76bf5b5ecf9f0a441be244593e1ffc510..6488efd0f062bace281c731a6ddbeba262858003 100644 (file)
@@ -179,8 +179,15 @@ public class mjc2wsl{
 
        public String createStandardStart(int numWords){
                StringBuilder ret = new StringBuilder(
-                       "C:\" This file automatically converted from microjava bytecode\";\n"
-                       +"C:\" with mjc2wsl "+getVersion()+"\";\n");
+                       "C:\" This file was automatically converted from microjava bytecode\n"
+                       +"    using mjc2wsl "+getVersion()+"\n");
+
+               ret.append("   -options:");
+               ret.append("\n    localsAsArrays:"+genLocalsAsArray);
+               ret.append("\n    localVarBlocks:"+genLocalVars);
+               ret.append("\n    popPush:"+genPopPush);
+               ret.append("\n    inlinePrint:"+genInlinePrint);
+               ret.append("\n\";\n");
 
                ret.append("\nBEGIN");
                ret.append("\nVAR <\n\t");
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner