整数类型的大小 [英] Sizes of Integer Types
问题描述
我有一台32位机器......无论如何我可以让gcc使用
跟随整数大小?
字符:8位
短:16位
int:32位
长:64位
长多:128位
谢谢!
鲍勃。
Bob Timpkinson写道:
我有一个32位机器......无论如何我可以让gcc使用
以下整数大小吗?
char:8位
short :16位
int:32位
长:64位
长多:128位
谢谢!
鲍勃。
除非:
1)你下载gcc的源代码
2)内部改变了很多东西
你需要工作大约6个月到2年取决于
你的运气和kn关于编译器的问题
就像gcc用户一样,我认为没办法做到这一点。
但是为什么你想要这个呢?
Bob Timpkinson< bo*@nospam.comwrites:
我有一台32位机器。 ..无论如何我可以让gcc使用
以下整数大小?
char:8位
短:16位
int:32位
长:64位
多头:128位
我们不知道。尝试在gnu.gcc.help中询问。
-
Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>
圣地亚哥超级计算机中心< *< http:/ /users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
- Antony Jay和Jonathan Lynn,是部长
9月5日星期三2007 09:18:00 +0200(CEST),在comp.lang.c中,Bob
Timpkinson< bo*@nospam.comwrote:
>
我有一台32位机器......无论如何我可以让gcc使用
以下整数尺寸吗?
char: 8位
短:16位
int:32位
长:64位
长long:128位
为什么要这样?
编译器的构建与硬件/软件环境相匹配
他们的目标。
-
马克麦金太尔
调试的难度是首先编写代码的两倍。
因此,如果你尽可能巧妙地编写代码,那么,根据定义,它不够聪明,无法调试它。
--Brian Kernighan
Hi,
I have a 32-bit machine... Is there anyway I can get gcc to use the
following integer sizes?
char: 8 bits
short: 16 bits
int: 32 bits
long: 64 bits
long long: 128 bits
Thanks!
Bob.
解决方案Bob Timpkinson wrote:Hi,
I have a 32-bit machine... Is there anyway I can get gcc to use the
following integer sizes?
char: 8 bits
short: 16 bits
int: 32 bits
long: 64 bits
long long: 128 bits
Thanks!
Bob.
No way unless:
1) You download the source code of gcc
2) Change quite a few things inside
You would have to work for approx 6 months to 2 years depending
on your luck and knowledge about compilers
Just as a gcc user I see no way to do that.
But why you want that in the first place?
Bob Timpkinson <bo*@nospam.comwrites:I have a 32-bit machine... Is there anyway I can get gcc to use the
following integer sizes?
char: 8 bits
short: 16 bits
int: 32 bits
long: 64 bits
long long: 128 bitsWe don''t know. Try asking in gnu.gcc.help.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
On Wed, 5 Sep 2007 09:18:00 +0200 (CEST), in comp.lang.c , Bob
Timpkinson <bo*@nospam.comwrote:
>Hi,
I have a 32-bit machine... Is there anyway I can get gcc to use the
following integer sizes?
char: 8 bits
short: 16 bits
int: 32 bits
long: 64 bits
long long: 128 bitsWhy would you want to?
Compilers are built to match the hardware / software environment
they''re targetting.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
这篇关于整数类型的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!