Add addition and subtraction for integers, build macros, dgo building, and build/load test (#35)

* see if math works on windows

* add dgo

* windows debug

* windows debug 2

* one more debug try

* add extra debug print and change logic for slashes

* update

* again

* try again

* remove build game

* remove build game

* add back build-game

* remove runtime from test

* test

* reduce number of files

* go to c++ 14

* big stacks

* increase stack size again

* clean up cmake files
This commit is contained in:
water111
2020-09-12 20:41:12 -04:00
committed by GitHub
parent d56540f8c0
commit 90a7e9b4b9
36 changed files with 1133 additions and 27 deletions
+8 -1
View File
@@ -351,5 +351,12 @@ Val* Compiler::compile_real_function_call(const goos::Object& form,
}
env->emit(std::make_unique<IR_FunctionCall>(function, return_reg, arg_outs));
return return_reg;
if (m_settings.emit_move_after_return) {
auto result_reg = env->make_gpr(return_reg->type());
env->emit(std::make_unique<IR_RegSet>(result_reg, return_reg));
return result_reg;
} else {
return return_reg;
}
}