On 08/07/09 12:21, Albin Tonnerre wrote: > Indeed, they've not been applied. However, I'd rather try to understand why > exactly this is an issue when compiling with -Os and not -O2 instead of > working > around it by removing the divisions. > > Regards,
Well, I for myself couldn't get it to compile _at_all_ for ARM as long as there were any division operations in the code. My theory was that the ARM processor doesn't have native division, and that this is being supplied by some kind of run-time library, which is not linked with when building the pre-boot environment. But if it works with some compilation flags but not others, something more complex must be going on... ... or could it be that with some flags, the compiler generates "division emulation" code, but not with others (such as when optimizing for size?) Regards, Alain -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html