Aligning function on a page boundary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

is it possible with GCC 4.1 to align one single function on a CPU page
boundary for ELF targets? This is very desired since the function in
question is an interpreter loop . It has 50K of code and is executed
very often. Aligning it on the page boundary should reduce TLB misses.

It seems the forthcoming GCC 4.3 allows that as it supports the align
attribute for functions,  but it would be nice to do that with GCC
4.1.

Thanks in advance, Igor

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux