Aligning branch targets to cache line size

Some articles I've read suggest aligning not only data structures, but also branch targets to cache line size. Is it possible to specify alignment for code in Rust? #[repr(align)] does not allow this.

Isn't the compiler able to take care of this one automatically ?

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.