StrongerXi / soc

Compiler for a subset of OCaml
1 stars 0 forks source link

Stack align #28

Closed StrongerXi closed 3 years ago

StrongerXi commented 3 years ago

Gist: In x86-64 bit system, rsp must be aligned to 16 bytes before a call instruction.

Interestingly this doesn't always break, but when it does, it's a segfault. Thankfully lldb tracks that down to stack alignment error pretty easily.

Resources