Comment 18 for bug 1401316

Revision history for this message
David Brown (davidbrown) wrote :

Just for fun, I've tried this with a newer version of gcc (9.2.1 - the latest on https://godbolt.org), as I have seen similar code myself. When compiling with -Os, you get bad code (big literal tables) for Cortex-M0 but it's fine for Cortex-M3 and above. When compiling with -O2, the Cortex-M0 is still bad but for the Cortex-M3 and above you get code that is not quite as bad as for the M0, but still much worse than M3 with -Os.