user3267042
user3267042

Reputation: 1

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 :(

Upvotes: 0

Views: 407

Answers (1)

Ben Voigt
Ben Voigt

Reputation: 283684

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:

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.

That rule allows C++ to be used on machines which have separate address spaces for code and data.

Upvotes: 2

Related Questions