Re: Visual Studio 2005 x64 mode.



"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote:
"Tim Roberts" <timr@xxxxxxxxx> wrote:
stevensmith1010@xxxxxxxxx wrote:

the problem is I have a very huge code and to manually go and change
to __int64 would be very tedious....so thats why was thinking if
there are some kind of compiler switches to force ints as
__int64's...?

Nope. In an intuitive world, "long" would be 64 bits in a 64-bit
compilation, as it is in gcc, but Microsoft decided we were all too
stupid to handle that. In my opinion, that was a huge mistake.

I'm not sure I understand. long _is_ 64-bit in a 64-bit build, just like
in GCC. What again are you complaining about?

You are incorrect. In a Visual C++ 64-bit build, "long" is 32 bits.
__int64 is the only built-in 64-bit type.

The fact that YOU got this wrong is a testimony to how non-intuitive this
move was.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: Visual Studio 2005 x64 mode.
    ... to __int64 would be very tedious....so thats why was thinking if ... there are some kind of compiler switches to force ints as ... compilation, as it is in gcc, but Microsoft decided we were all too ...
    (microsoft.public.vc.language)
  • Re: Visual Studio 2005 x64 mode.
    ... to __int64 would be very tedious....so thats why was thinking if there ... are some kind of compiler switches to force ints as __int64's...? ... Tim Roberts, timr@xxxxxxxxx ...
    (microsoft.public.vc.language)
  • Re: Visual Studio 2005 x64 mode.
    ... to __int64 would be very tedious....so thats why was thinking if there ... are some kind of compiler switches to force ints as __int64's...? ...
    (microsoft.public.vc.language)
  • Re: Compiling kernel and userland with Intel C Compiler
    ... AFAIK nobody is working on it. ... right compiler switches if they differ from gcc. ... current manpower) we'll be releasing TenDRA 5.0.0 which has a lot of structural ...
    (freebsd-arch)
  • Re: Compiling kernel and userland with Intel C Compiler
    ... AFAIK nobody is working on it. ... right compiler switches if they differ from gcc. ... been adding support for FreeBSD 6.x and I have it bootstraping and compiling now ...
    (freebsd-arch)