addvar(gatevar, Types[TUINT8], PEXTERN)
// (2)
- Maxarg = 0
-
fn := nod(ODCLFUNC, nil, nil)
initsym := lookup("init")
fn.Func.Nname = newname(initsym)
SSEto387 map[int16]int16
// Some architectures require a 64-bit temporary for FP-related register shuffling. Examples include x86-387, PPC, and Sparc V8.
ScratchFpMem *Node
+
+ maxarg int64 // largest frame size for arguments to calls made by the function
}
// Pc returns the current Prog.
liveness(e.curfn, ptxt, gcargs, gclocals)
// Add frame prologue. Zero ambiguously live variables.
- thearch.Defframe(ptxt, e.curfn, Stksize+Maxarg)
+ thearch.Defframe(ptxt, e.curfn, Stksize+s.maxarg)
if Debug['f'] != 0 {
frame(0)
}
}
p.To.Reg = v.Args[0].Reg()
}
- if Maxarg < v.AuxInt {
- Maxarg = v.AuxInt
+ if s.maxarg < v.AuxInt {
+ s.maxarg = v.AuxInt
}
return p
}