News for hackers. Stuff that matters.
Re:The tiniest C sort function? by tedunangst on Tuesday January 12, 2010 @02:49PM (#1048325)
Implicitly returning int is not the same as implicitly returning 0. If it falls off the bottom, the return value is undefined. No additional machine code.
Re:The tiniest C sort function? by city41 on Tuesday January 12, 2010 @02:58PM (#1048349)
Ah, I guess it's just main that implicitly returns 0.
Re:The tiniest C sort function? by azim on Tuesday January 12, 2010 @05:02PM (#1048685)
If memory serves correctly, I believe the typical calling convention for x86 is returning ints in %eax. So the caller will interpret whatever happens to be in %eax at the time as the return value.