public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Aligning function on a page boundary
@ 2008-02-27 13:09 Igor Bukanov
  2008-02-27 14:00 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Igor Bukanov @ 2008-02-27 13:09 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-27 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-27 13:09 Aligning function on a page boundary Igor Bukanov
2008-02-27 14:00 ` Sam Ravnborg
2008-02-27 14:08   ` Igor Bukanov
2008-02-27 17:43     ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).