- what is the bit width of integer on WindowsXP?
- Posted by Tianbing on January 13th, 2006
Now I am interesting in the X64 oprating system, and compared the EMT64 and
A64 to find the meaning of the 64-bit.
the question is that on the 64-biit windows XP oerating system, what is the
bit width of an integer, 32 bit or 64 bit?
I think that depends on the compiler, and i want to know the which one the
next generation compiler such as VS 2005 will choose.
thanks very much
- Posted by Carey Frisch [MVP] on January 13th, 2006
Please repost your inquiry in the new Windows 64-bit newsgroup:
news://msnews.microsoft.com/microsof....64bit.general
or
Discussions in Windows 64-bit Edition
http://www.microsoft.com/communities...&lang=en&cr=US
--
Carey Frisch
Microsoft MVP
Windows - Shell/User
Microsoft Community Newsgroups
news://msnews.microsoft.com/
-------------------------------------------------------------------------------------------
"Tianbing" wrote:
| Now I am interesting in the X64 oprating system, and compared the EMT64 and
| A64 to find the meaning of the 64-bit.
| the question is that on the 64-biit windows XP oerating system, what is the
| bit width of an integer, 32 bit or 64 bit?
| I think that depends on the compiler, and i want to know the which one the
| next generation compiler such as VS 2005 will choose.
| thanks very much
- Posted by Vagabond Software on January 13th, 2006
"Tianbing" <Tianbing@discussions.microsoft.com> wrote in message
news
3FB42B7-339D-4095-80B2-52A2A53B80C3@microsoft.com...
> Now I am interesting in the X64 oprating system, and compared the EMT64
> and
> A64 to find the meaning of the 64-bit.
> the question is that on the 64-biit windows XP oerating system, what is
> the
> bit width of an integer, 32 bit or 64 bit?
> I think that depends on the compiler, and i want to know the which one the
> next generation compiler such as VS 2005 will choose.
> thanks very much
If you follow good coding practices and especially make sure you have
verifiably type-safe code, you can port your managed code to native 64bit
without any source changes at all. The pointer size of 32 or 64 bit and
type alignment will be determined automatically.
However, if you have done things like make direct comparisons for equality
in floating point numbers (i.e. if BalanceDue == AmountTendered) you will
likely have to do some refactoring.
carl