Improved Windows ABI support
This commit is contained in:
parent
91a3ec9d52
commit
b3fec98baf
22 changed files with 124 additions and 32 deletions
|
@ -33,6 +33,7 @@ func (r *Result) finalize() {
|
|||
final.Syscall()
|
||||
case config.Windows:
|
||||
final.RegisterNumber(asm.MOVE, x86.WindowsInputRegisters[0], 0)
|
||||
final.RegisterNumber(asm.AND, x86.RSP, -16)
|
||||
final.DLLCall("kernel32.ExitProcess")
|
||||
}
|
||||
|
||||
|
@ -67,6 +68,7 @@ func (r *Result) finalize() {
|
|||
final.Syscall()
|
||||
case config.Windows:
|
||||
final.RegisterNumber(asm.MOVE, x86.WindowsInputRegisters[0], 1)
|
||||
final.RegisterNumber(asm.AND, x86.RSP, -16)
|
||||
final.DLLCall("kernel32.ExitProcess")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue