From a0f862272b073ded2ff0f7e8c992c47246473e5c Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Wed, 20 Apr 2016 20:21:40 +0200 Subject: [PATCH] mjc2wsl - added output of options used in the generated files --- .../quemaster/transformations/mjc2wsl/mjc2wsl.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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"); -- 2.25.1