Commit 113c880f authored by Axel Simon's avatar Axel Simon

update the mini main in the runtime.c file

parent 9f0a0f66
......@@ -141,7 +141,7 @@ gdslc_SOURCES = gdslc.mlb $(GDSLC_SML_FILES)
$(MLANTLR) $<
GDSLC = $(abspath $(CURDIR)/gdslc$(EXEEXT))
GDSLC_DEP = gdslc$(EXEEXT)
GDSLC_DEP = gdslc$(EXEEXT) detail/codegen/c1/runtime.c detail/codegen/c1/runtime.h
# the decoders
......
......@@ -371,14 +371,14 @@ done:
if (setjmp(*gdsl_err_tgt(s))==0) {
if (argc>1) {
#if defined(gdsl_translateBlock) && defined(gdsl_rreil_pretty)
obj_t rreil = gdsl_translateBlock(s);
obj_t rreil = gdsl_translateBlock(s, gdsl_config_default(s));
obj_t res = gdsl_rreil_pretty(s,rreil);
string_t str = gdsl_merge_rope(s,res);
fputs(str,stdout);
#endif
} else {
#if defined(gdsl_decode) && defined(gdsl_pretty)
obj_t instr = gdsl_decode(s);
obj_t instr = gdsl_decode(s, gdsl_config_default(s));
obj_t res = gdsl_pretty(s,instr);
string_t str = gdsl_merge_rope(s,res);
fputs(str,stdout);
......@@ -387,7 +387,7 @@ done:
} else {
fputs("exception: ",stdout);
fputs(gdsl_get_error_message(s),stdout);
consume8(s);
if (gdsl_get_ip_offset(s)<buf_size) consume8(s);
}
fputs("\n",stdout);
int_t size = gdsl_heap_residency(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment