Just wasted 2 hours of my life because turns out the C calling convention is really not standardized and depends on the target platform

Wouldn't advise doing cross boundry efiabi->sysv64 calls 🤦‍♂️

  • 7
    Yeah it's super annoying and you have to resort to all sorts of hackery to get around it. But then that's just low level dev in a nutshell.
  • 4
    Of course it depends on the target platform because otherwise, e.g. register starved architectures would have crippled the speed on register rich architectures.
  • 2
    only 2 hours? in my opinion I'd count that as a win!
  • 1
    @Fast-Nop True, but even on x86_64 it isn't standardized between win64 and sysv for example
  • 0
    @12bitfloat Then again, Windows isn't sticking to any sort of standard such as POSIX. That Microsoft ghetto is the result of decades of "embrace, extend, extinguish".
Add Comment