Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Does your favorite C++ compiler support 64-bit integer types?

Reply
Thread Tools

Does your favorite C++ compiler support 64-bit integer types?

 
 
Ioannis Vranos
Guest
Posts: n/a
 
      04-20-2004
"Jack Walker" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
>
> > Then how .NET (and i assume Win32) has an __int64 type and compilers

like
> > the VC++ one support it? And it *is* (behaves) as an 64 bit int.
> >

>
> Well .NET is a virtual processor system like the JVM so every type it
> supports is emulated in software.



But .NET is not yet an 64-bit virtual machine.

DJGPP also provides 64 bit integer type, as also MINGW (both GCC ports).



#include <iostream>
#include <limits>

// Not ISO C++98 code
int main()
{
using namespace std;

cout<<numeric_limits<long long>::max()<<endl;
cout<<numeric_limits<long>::max()<<endl;


}


C:\c>gpp temp.cpp -o temp

C:\c>temp
9223372036854775807
2147483647

C:\c>\mingw\bin\g++ temp.cpp -o temp

C:\c>temp
9223372036854775807
2147483647


And of course GCC for 32-bit GNU/Linux does the same.






Ioannis Vranos

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cast Your Vote For Your Favorite Movie right now. aasghar Digital Photography 0 06-16-2008 07:29 AM
Change a string to an integer, report an error if the string does not represent an integer? Randy Kramer Ruby 12 10-25-2007 09:56 PM
Does your C compiler support "//"? (was Re: using structures) Samuel Barber C Programming 382 08-25-2004 07:06 PM
Putting your Cell Phone Camera to good use - help fund your favorite charity David Blumenstein Digital Photography 2 08-04-2004 09:46 PM
will Synposys Design Compiler support division by two's power and integer rounding? walala VHDL 12 09-14-2003 03:49 PM



Advertisments