Improved code generation

This commit is contained in:
2024-07-03 16:37:59 +02:00
parent 795935ddfb
commit 4d88260333
15 changed files with 215 additions and 275 deletions

View File

@ -31,10 +31,10 @@ func NewFunction(name string, file *fs.File, body token.List) *Function {
Instructions: make([]asm.Instruction, 0, 32),
},
cpu: cpu.CPU{
Call: x64.CallRegisters,
Input: x64.CallRegisters,
General: x64.GeneralRegisters,
Syscall: x64.SyscallRegisters,
Return: x64.ReturnValueRegisters,
Output: x64.ReturnValueRegisters,
},
definitions: map[string]*Definition{},
variables: map[string]*Variable{},