Re: Visual Studio 2005 x64 mode.



"Igor Tandetnik" wrote:
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?

AFAIK, `long' data type is 32-bit in 64-bit MS C++ compiler. In
order to get 64-bit integer type one should use `long long' type:

"Data Type Ranges"
http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx

Also, see:

"Common Visual C++ 64-bit Migration Issues"
http://msdn.microsoft.com/en-us/library/3b2e7499.aspx


Alex


.



Relevant Pages

  • Re: Gforth and gcc "progress"
    ... on the Alpha and "fixed" it by changing the documentation, ... sense to have one data type which is twice as long as the longest "native" ... The first GCC port to 64 bit was before, ...
    (comp.lang.forth)
  • Re: WinAVR warum hier kein Warning?
    ... Parameter "-Wall" im gcc gesetzt habe? ... Keine Ahnung, nutze den GCC nicht. ... Allerdings sind Warnungen ja auch nur ... When a value with integer type is converted to another ...
    (de.sci.electronics)
  • Re: The importance of prototypes
    ... Browsing around in gnu.gcc.bug I see that in gcc if no prototype is ... the function passes all arguments as ints (no matter the local ... data type or the function declarations desired data type). ...
    (comp.lang.c)
  • Re: More bit shifting issues
    ... I seem to be having yet more wierd issue with bit shifting. ... seems the following code doesnt do anything under gcc (ie it ... integer type. ...
    (comp.lang.c)
  • Re: Sizes of Integer Types
    ... an integer type of "at least" 32 bits, which is what I'd get if I ... If your target platform does not have an 8-bit data type, ... a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq ...
    (comp.lang.c)