From: Doni Pracner Date: Wed, 20 Apr 2016 18:21:40 +0000 (+0200) Subject: mjc2wsl - added output of options used in the generated files X-Git-Tag: v0.2.1~3 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=a0f862272b073ded2ff0f7e8c992c47246473e5c;p=mjc2wsl.git mjc2wsl - added output of options used in the generated files --- diff --git a/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java b/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java index 233d5ae..6488efd 100644 --- a/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java +++ b/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java @@ -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");