[英]Harvard Architecture maps to HLL
This is a question I have been searching for a while but I have not got a proper answer yet :( 这是我一直在寻找一段时间的问题,但我还没有得到正确答案:(
The only way Harvard vs Princeton architecture is really relevant to C++ is in the rule 5.2.10p8 concerning mixing function pointers and object pointers: 哈佛与普林斯顿架构与C ++真正相关的唯一方法是在规则5.2.10p8中关于混合函数指针和对象指针:
Converting a function pointer to an object pointer type or vice versa is conditionally-supported. 有条件地支持将函数指针转换为对象指针类型(反之亦然)。 The meaning of such a conversion is implementation-defined, except that if an implementation supports conversions in both directions, converting a prvalue of one type to the other type and back, possibly with different cv-qualification , shall yield the original pointer value. 这种转换的含义是实现定义的,除非实现支持两个方向的转换,将一种类型的prvalue转换为另一种类型并返回,可能具有不同的cv-qualification ,将产生原始指针值。
That rule allows C++ to be used on machines which have separate address spaces for code and data. 该规则允许C ++在具有代码和数据的单独地址空间的机器上使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.