Good morning! On 03/06/2025 21:57, Segher Boessenkool wrote:
It might pay off to write that one directly in assembler code, don't try to manipulate the compiler into ending up with the code you want, just write it!
Using assembler is certainly one thing I am considering, but it will not be possible for everything as this is 100,000s of lines of code. But at the moment, I am not yet interested in solving any specific problem - that will be a job for later. Before I'm ready for that, first I want to understand - what do these optimisation options actually do? So my two questions are: 1) Why is m=1 different from m=2,3,4? Because I thought ARM32 instructions were always 4-byte aligned. Shouldn't they produce the same code? 2) And why are m=1 and m=2,3,4 different to -fno-align-functions? Because I would think m=1,2,3,4 would do no alignment. Many thanks for your help, Tim