The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: thomas_remkus on October 22, 2007, 01:47:22 PM

Title: 64 bit code on a 32 bit OS
Post by: thomas_remkus on October 22, 2007, 01:47:22 PM
Is it possible to install a 32 bit OS on a 64 bit machine ... then access the 64 bit registers while in 32-bit land?
Title: Re: 64 bit code on a 32 bit OS
Post by: BogdanOntanu on October 22, 2007, 03:23:41 PM
No.
Title: Re: 64 bit code on a 32 bit OS
Post by: Mark Jones on October 22, 2007, 03:34:27 PM
...But the 64-bit OS does support native 32-bit modules, correct? Probably at an abstraction layer or something.
Title: Re: 64 bit code on a 32 bit OS
Post by: TNick on October 22, 2007, 04:18:18 PM
Yes.

:)
Title: Re: 64 bit code on a 32 bit OS
Post by: Rockoon on October 22, 2007, 04:35:22 PM
Quote from: Mark Jones on October 22, 2007, 03:34:27 PM
...But the 64-bit OS does support native 32-bit modules, correct? Probably at an abstraction layer or something.

Microsoft calls its abstraction layer Windows On Windows (WOW64)


I do not believe that a 32-bit program running under WOW64 can load and call 64-bit DLL's .. can anyone confirm?
Title: Re: 64 bit code on a 32 bit OS
Post by: Vortex on October 22, 2007, 05:21:46 PM
Thomas,

It would be good to access the 64-bit registers in the 32-bit environment for optimization purposes but probably that's not possible.
Title: Re: 64 bit code on a 32 bit OS
Post by: Rockoon on October 22, 2007, 06:57:39 PM
No probably about it - the x86-64 registers are not addressible while in 32-bit mode .. this includes the extended SSE register set (xmm8 .. xmm15)