From e2b7385b03a6dc9c8c39dde5c049cd74b0768bd1 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 12 Nov 2023 16:15:40 +0200 Subject: Remove options, improve functions --- src/bytecode_compiler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/bytecode_compiler.py') 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") -- cgit v1.3