Improved code generation
This commit is contained in:
parent
5ca086f177
commit
75672c1e16
15 changed files with 215 additions and 275 deletions
|
@ -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{},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue