This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: Large-Address awareness on 64 bit systems
On Jun 27 02:29, Yaakov (Cygwin/X) wrote:
> On Sun, 2011-06-19 at 10:18 +0200, Corinna Vinschen wrote:
> > On Jun 19 10:09, Corinna Vinschen wrote:
> > > On Jun 19 02:24, Yaakov (Cygwin/X) wrote:
> > > > Are there any downsides to large address awareness, particularly for
> > > > 32bit systems or those with less than 4GB? IOW is there any reason not
> > > > to switch this on by default in gcc/ld?
> > >
> > > I don't see any problem. Cygwin does not use the high bit of a pointer
> > > as a flag for something and hopefully no other DLL or applications does
> > > that.
> >
> > Well, there's of course still a chance that an application or the Cygwin
> > DLL itself uses signed ints or longs to compare addresses or to do
> > adress arithmetic. I hope there's no such problem lurking in a dark and
> > musty corner of the sources...
>
> That would only be triggered when rebasing to the upper addresses,
> right? My question was simply about adding
>
> %{!shared:--large-address-aware}
>
> to gcc's link specs.
I think that would be the right thing to do.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat