* IA-64 and const
@ 2004-12-05 12:09 Thomas Koenig
2004-12-05 18:11 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Koenig @ 2004-12-05 12:09 UTC (permalink / raw)
To: gcc
Hi,
what is the reason why
const int answer=42;
isn't put into a read-only section on the IA-64 (compare
http://gcc.gnu.org/PR18566 ) ? Can this be changed?
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IA-64 and const
2004-12-05 12:09 IA-64 and const Thomas Koenig
@ 2004-12-05 18:11 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2004-12-05 18:11 UTC (permalink / raw)
To: Thomas Koenig; +Cc: gcc
On Sun, Dec 05, 2004 at 01:09:53PM +0100, Thomas Koenig wrote:
> what is the reason why
>
> const int answer=42;
>
> isn't put into a read-only section on the IA-64 (compare
> http://gcc.gnu.org/PR18566 ) ? Can this be changed?
Because it's quicker to load the value if it's placed in the
small data section. Of course, Fortran doesn't *want* to load
the value directly, so that doesn't do any good.
It couldn't be changed arbitrarily, but it wouldn't be impossible
to come up with some way for the Fortran front end to annotate
its CONST_DECLs such that the target doesn't consider that
particular object for the small data section.
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-05 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-05 12:09 IA-64 and const Thomas Koenig
2004-12-05 18:11 ` Richard Henderson
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).