3 ms·
Compiler sees "function" and understands "ABI says that pointer is 32-bit aligned, I can count on that because whoever calls it will also be ABI compatible and
by dmitrygr 8y ago
Compiler sees "function" and understands "ABI says that pointer is 32-bit aligned, I can count on that because whoever calls it will also be ABI compatible and make it so"
- crististm 8y agoYou confirmed my interoperability claim with your answer - whoever calls. Consider just the main function. You are free to ignore the ABI there but you still need to obey the cpu spec.
- dmitrygr 8y agoNot really. If main ignores abi for example by not saving callee saved regs, you'll crash. Ignoring abi is never safe unless your entire project is written in asm