PAGESIZE
Zack Weinberg
zack@wolery.cumb.org
Tue Sep 5 15:09:00 GMT 2000
On Tue, Sep 05, 2000 at 02:55:46PM -0700, Bruce Korb wrote:
> DJ Delorie wrote:
> >
> > 2000-09-05 Bruce Korb <bkorb@gnu.org>
> >
> > * gcc/fixinc/fixincl.c(load_file): always read header files
> > with sizes that are a multiple of the page size.
> >
> > "PAGESIZE" isn't always defined. It isn't on Linux, for example.
>
> I presume that that is the case so that it can be varied?
> >From what to what, I wonder. Surely not from one memory
> manager to another within the same OS image. :-).
Different ABIs on the same platform; different memory models;
different versions of the same processor.
In practice, yes, it's a constant on any given architecture.
> At any rate, there is no sysconf(2) attribute for it either.
> I propose disabling mmap altogether, unless someone can point
> me to a portable solution. (Always assume that a memory page
> will never be smaller than 0x1000, for example? I never get
> warm fuzzies from such assumptions.)
This is overkill. getpagesize() is in libiberty, you don't have to
worry about it.
zw
More information about the Gcc
mailing list