Improved separation of concerns
This commit is contained in:
parent
dc5456b820
commit
abba962455
36 changed files with 243 additions and 236 deletions
15
src/build/z/Compiler.go
Normal file
15
src/build/z/Compiler.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package z
|
||||
|
||||
import (
|
||||
"git.akyoto.dev/cli/q/src/build/asm"
|
||||
"git.akyoto.dev/cli/q/src/build/cpu"
|
||||
"git.akyoto.dev/cli/q/src/build/scope"
|
||||
)
|
||||
|
||||
// Compiler is a register usage aware assembler.
|
||||
type Compiler struct {
|
||||
scope.Stack
|
||||
Assembler asm.Assembler
|
||||
CPU cpu.CPU
|
||||
RegisterHistory []uint64
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue