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 ?

2 Likes