← Back to context

Comment by thayne

2 days ago

Why do the compilation units need to be padded if the functions don't need to be aligned.

I'm a pretty rusty on ARM asm but from what I remember the opcodes to efficiently load constants into registers are pretty inflexible so it's common to store larger constants inline with the code. I'm guessing you need to keep the code aligned to preserve the alignment of these constants.