问题描述
我知道,C和C ++标准,离开了语言实现定义,只是因为如果没有与其他特色的建筑,这将是非常困难或不可能写出符合编译器是一个标准的许多方面。
I know that the C and C++ standards leave many aspects of the language implementation-defined just because if there is an architecture with other characteristics, it would be very difficult or impossible to write a standard conforming compiler for it.
我知道,40年前的任何计算机有它自己独特的规范。但是,我不知道任何架构的今天使用其中:
I know that 40 years ago any computer had its own unique specification. However, I don't know of any architectures used today where:
-
CHAR_BIT!= 8
-
签署
不补(听说过的Java与这一个问题)。 - 浮动点不符合IEEE 754(编辑:我的意思是不是在IEEE 754二进制编码) 。
CHAR_BIT != 8
signed
is not two's complement (I heard Java had problems with this one).- Floating point is not IEEE 754 compliant ( I meant "not in IEEE 754 binary encoding").
我问的原因是,我经常向人们解释,这是很好的,C ++不强制要求任何其他低级别的因素,如固定大小类型。这是很好的,因为不像其他语言的正确使用时,它使你的code便携。但我觉得不好,我不能指向任何特定的架构自己。
The reason I'm asking is that I often explain to people that it's good that C++ doesn't mandate any other low-level aspects like fixed sized types. It's good because unlike 'other languages' it makes your code portable when used correctly. But I feel bad that I cannot point to any specific architecture myself.
所以,问题是:什么架构具有上述性质
So the question is: what architectures exhibit the above properties?
† UINT * _t
是可选的。
推荐答案
在这一个看看
有关谁尚未迁移他们所有的Univac公司软件产品的人向后兼容。
offering backward compatibility for people who have not yet migrated all their Univac software.
要点:
- 36位字
-
CHAR_BIT == 9
- 的补
- 72位非IEEE浮点
- 为code和数据独立的地址空间
- [也许不会]
- 字寻址
不知道,如果他们提供了一个C ++编译器,虽然,但他们的可以
Don't know if they offer a C++ compiler though, but they could.
这篇关于异国情调的架构标准委员会关心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!