The compiler doesn't enforce the return type though, so you can still return values from a void function and have the compiler care fuck all about it.

Also, Lite-C from my limited experience uses cdecl as calling convention, which uses 0xc3 (aka the ret instruction) and carries the return value for simple integers in the EAX register. retl, retw, retq etc (0xc2) are rarely if ever used as the compiler can either easier create code that has the result in the EAX register already or add a mov which can be done in one byte, making the whole thing use less space either way laugh


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com