您最喜欢的C ++编译器是否支持64位整数类型? [英] Does your favorite C++ compiler support 64-bit integer types?

查看:61
本文介绍了您最喜欢的C ++编译器是否支持64位整数类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你赶时间,请跳到最后一段。


我的应用程序中的一些整数变量需要保持值

更大比2 ^ 32-1。


其他人不需要那么大。普通(读取:32位)微型计算机的时间和空间效率非常重要。


我想使用一些抽象层与C99的stdint.h相当,所以

我的变量声明指定位数。


我的应用程序是在通用硬件上运行在Linux,Mac,BSD和

Windows.


我对实际可移植性比ISO标准更感兴趣。

64位类型是长还是长也似乎无关紧要。


哪些C ++编译器能做什么,哪些没有64位整数类型?并且

他们有类似stdint.h的东西吗?

Please skip to the last paragraph if you are in a hurry.

Some of the integer variables in my application will need to hold values
bigger than 2^32-1.

Others won''t need to be that big. Time and space efficiencies on
run-of-the-mill (read: 32 bit) microcomputers are important.

I want to use some layer of abstraction comparable to C99''s stdint.h so
that my variable declarations specify the number of bits.

My app is to run on general-purpose hardware on Linux, Mac, BSD, and
Windows.

I am more interested in practical portability than in ISO standards.
Also it seems to be irrelevant whether the 64-bit type is long or long long.

Which C++ compilers do and which do not have 64-bit integer types? And
do they have something like stdint.h?

推荐答案

2004年4月13日星期二21 :19:04 GMT in comp.lang.c ++,Matt

< ma ** @ themattfella.zzzz.com>写道,
On Tue, 13 Apr 2004 21:19:04 GMT in comp.lang.c++, Matt
<ma**@themattfella.zzzz.com> wrote,
哪些C ++编译器有哪些,哪些没有64位整数类型?并且
他们有类似stdint.h的东西吗?
Which C++ compilers do and which do not have 64-bit integer types? And
do they have something like stdint.h?




Digital Mars C ++ http://www.digitalmars.com

有long long。和stdint.h。



Digital Mars C++ http://www.digitalmars.com
has "long long" and stdint.h.


" Matt" <毫安** @ themattfella.zzzz.com>在留言中写道

news:cP **************** @ news02.roc.ny
"Matt" <ma**@themattfella.zzzz.com> wrote in message
news:cP****************@news02.roc.ny
请跳到最后一段如果你赶时间。

我的应用程序中的一些整数变量需要保持大于2 ^ 32-1的值。

其他人赢了不需要那么大。普通(读取:32位)微型计算机的时间和空间效率非常重要。

我想使用一些与C99的标准相当的抽象层。 h
以便我的变量声明指定位数。

我的应用程序是在Linux,Mac,BSD和Windows上的通用硬件上运行。 />
我对实际可移植性比对ISO标准更感兴趣。
64位类型是长还是长,似乎无关紧要。

他们有类似stdint.h的东西吗?
Please skip to the last paragraph if you are in a hurry.

Some of the integer variables in my application will need to hold
values bigger than 2^32-1.

Others won''t need to be that big. Time and space efficiencies on
run-of-the-mill (read: 32 bit) microcomputers are important.

I want to use some layer of abstraction comparable to C99''s stdint.h
so that my variable declarations specify the number of bits.

My app is to run on general-purpose hardware on Linux, Mac, BSD, and
Windows.

I am more interested in practical portability than in ISO standards.
Also it seems to be irrelevant whether the 64-bit type is long or
long long.

Which C++ compilers do and which do not have 64-bit integer types?
And
do they have something like stdint.h?




微软有一个64位数据类型,但我认为它比32位整数类型的效率低于b / b
。各种类型(除了通常的int等)在这里列出了



http://msdn.microsoft.com/library/de...data_types.asp

-

John Carson

1.要回复电子邮件地址,请删除donald

2 。不要回复电子邮件地址(在此发帖)



Microsofts has a 64 bit data type, though I think it is less efficient than
the 32 bit integer type. The various types (besides the usual int etc.) are
listed here.

http://msdn.microsoft.com/library/de...data_types.asp
--
John Carson
1. To reply to email address, remove donald
2. Don''t reply to email address (post here instead)


David Harmon写道:
David Harmon wrote:
4月13日星期二2004 21:19:04 GMT in comp.lang.c ++,Matt
< ma ** @ themattfella.zzzz.com>写道,
On Tue, 13 Apr 2004 21:19:04 GMT in comp.lang.c++, Matt
<ma**@themattfella.zzzz.com> wrote,
哪些C ++编译器有哪些,哪些没有64位整数类型?并且
他们有类似stdint.h的东西吗?
Which C++ compilers do and which do not have 64-bit integer types? And
do they have something like stdint.h?



Digital Mars C ++ http://www.digitalmars.com
有long long和stdint.h。


Digital Mars C++ http://www.digitalmars.com
has "long long" and stdint.h.




它的长多是64位?



And its long long is 64 bits?


这篇关于您最喜欢的C ++编译器是否支持64位整数类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆