aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode_compiler.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-11-12 16:15:40 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2023-11-12 16:15:40 +0200
commite2b7385b03a6dc9c8c39dde5c049cd74b0768bd1 (patch)
tree817c9dc2c23f72bd5b0e36ada52ad86bb5e39909 /src/bytecode_compiler.py
parent6f68c0febdbfd6138fa95f77bc09785bde8a8371 (diff)
Remove options, improve functions
Diffstat (limited to 'src/bytecode_compiler.py')
-rw-r--r--src/bytecode_compiler.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bytecode_compiler.py b/src/bytecode_compiler.py
index 2a5bc82..0492ddb 100644
--- a/src/bytecode_compiler.py
+++ b/src/bytecode_compiler.py
@@ -94,10 +94,8 @@ def emit_serialize_const(const: Any):
print(f"warn: cannot serialize {type(const)} ({const}), emitting zero")
emit(" 0")
-STACK_POINTER_REG = Reg('G')
-CSR_SCRATCH_REG = Reg('H')
-emit(f"@opt stack_pointer {STACK_POINTER_REG}")
-emit(f"@opt csr_scratch {CSR_SCRATCH_REG}")
+STACK_POINTER_REG = Reg('H')
+emit(f"@let SP {STACK_POINTER_REG}")
emit("@use ext_std:*")
emit("@include bootstrap")