April 29, 2004

Beware clashing Evil

GCC on x86 doesn't, by default, align functions on any sort of boundary. This can make for interesting fun if one assumes that it does. (Especially since -O2 and above do align the functions)

-falign-functions=n would be the gcc switch you'd want if you had some reason to care. (where n means "on an n byte boundary") You probably shouldn't, but...

Posted by Dan at April 29, 2004 12:54 PM | TrackBack (0)
Comments

Sounds like there's an (marginally, at least) interesting story behind this one.. :)

Posted by: Aristotle Pagaltzis at April 29, 2004 06:17 PM