This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: sparc64 support for Solaris



> > I was wondering how I can enable 64 bit support and v9 instruction
> > scheduling for an Ultra 1 Model 170 running Solaris2.5.
> 
> If you turned it on, your process would bomb at the first context switch.
> Solaris 2.5.x does not save the 64-bit register state, so basically some
> registers will come back randomized (from other processes?).

Not randomized, zero extended.

All 64 bits of the global and out registers are preserved over a
context switch.  I've made some changes to take advantage of this for
certain 64 bit operations in 32 bit mode (e.g. cmpdi is inline).  This
is effectively a peephole optimization -- I don't keep 64 bit registers
live across gcc instruction boundaries because that would be too hard.

> Solaris 2.6 is supposed to fix this.

2.6 is the same as 2.5, I'm told.  2.7 (next summer?) will support 64
bit processes.



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