How to align C for-loop body w/ GCC?
In our embedded architecture we have a 64-bit IAB (Instruction Alignment Buffer). In order to optimize the fetch sequence, it is required that the body of a loop will start aligned to an 8-byte boundary. It is easy to achieve this in assembly using the .balign directive, but I cannot find a syntax that will hint the C compiler to align the code. Trying to precede the for loop with inline assembly with the .balign directive doesn't work as it aligns the for loop prolog (setup) and not the loop body itself. Doing the same where the asm() line is inside the loop, adds nop -s to the loop body that