This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PAGESIZE
- To: DJ Delorie <dj at delorie dot com>, GNU Compiler <gcc at gcc dot gnu dot org>, Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: PAGESIZE
- From: Bruce Korb <bkorb at sco dot COM>
- Date: Tue, 05 Sep 2000 14:55:46 -0700
- Organization: The Santa Cruz Operation
- References: <200009051939.PAA27092@envy.delorie.com>
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. :-).
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.)