aboutsummaryrefslogtreecommitdiff
path: root/snug-clean/src/Snug/Compile/ABI.dcl
blob: 6de2953eb475994f5f40bfd5b028dee0372d70e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
definition module Snug.Compile.ABI

from MIPS.MIPS32 import :: Label, :: Register(GP,S,T)
from Snug.Compile import :: Namespace
from Snug.Syntax import :: ConstructorIdent, :: SymbolIdent

:: EntryPoint
	= NodeEntry

BackPrintPtr :== S 0
FrontPrintPtr :== S 1

BackEvalPtr :== S 2
FrontEvalPtr :== S 3

TextEndDataStart :== S 7

HeapPtr :== GP

TempImm :== T 0

constructorLabel :: !Namespace !ConstructorIdent -> Label
functionLabel :: !Namespace !EntryPoint !SymbolIdent -> Label