This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Large-Address awareness on 64 bit systems


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.


Yaakov



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]