Forum Discussion
Altera_Forum
Honored Contributor
12 years agoBranch target address alignment
Hello, To avoid line wrap burst from instruction cache masters, I want to align each branch target to 32 B cache line boundary. Is there any macro to achieve that? More detailed descriptio...
Altera_Forum
Honored Contributor
12 years agoYou'd probably have to read and modify the gcc sources in order to get every branch target aligned.
Or possibly compile to the .s and then insert the asm directive (IIRC .balign 32) before every code label - should be scriptable. Have you looked for options on the cpu cache? Although old memory technoligies supported 'critical word first' burst reads, newer ones don't. So I'd have thought there would be an option for it.