Ad
  • Custom User Avatar

    It cannot be solved in a portable way, yes. Solutions have to assume ABI, which for CW is SystemV for linux.

    Majotiry of solutions takes approach with inline assembly, but there are some smart solutions which avoid it. But still you need some address-of magic/abuse to get the stack parameters, yes.

    Bottom line is: it cannot be solved in a portable way, but it can be solved without inline assembly.