This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pch on sparc64
- From: "David S. Miller" <davem at davemloft dot net>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: ja2morri at csclub dot uwaterloo dot ca, gcc at gcc dot gnu dot org
- Date: Tue, 15 Feb 2005 08:57:24 -0800
- Subject: Re: pch on sparc64
- References: <kfhis8izzhi.fsf@glucose-fructose.csclub.uwaterloo.ca><20041106170843.79907374.davem@davemloft.net><20041107020246.GA26538@nevyn.them.org><20041106221140.7fcc2d71.davem@davemloft.net><20041107153613.GA7125@nevyn.them.org>
On Sun, 7 Nov 2004 10:36:13 -0500
Daniel Jacobowitz <drow@false.org> wrote:
> Yes, this is also rounded up to the page size at present. Redefining
> HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY should be all it takes..
[ responding to an ancient email, sorry... ]
This actually turns out to be impractical, as the necessary value
on sparc is:
1) variable, it's 16K when running on a sparc64 machine but totally
different and dependant upon what kind of cpu is plugged into the
computer on sparc32 machines. There is no simply way to probe for
this value either.
2) can be large, up to 4MB or so with certain sparc32 configurations
So I guess the recent version of the fix to simply read in the
file contents into anonymous memory when necessary is the most
appropriate. It's probably cheaper than relocating things too.