2 ms·
If you could sizeof or copy a function by a simple assignment, how would you port it into a machine with separate code and data spaces?
by anticensor 8y ago
If you could sizeof or copy a function by a simple assignment, how would you port it into a machine with separate code and data spaces?
- kazinator 8y agoWith a crapload of special case code, nests of #ifdefs and a dollop of "we should have thought of that possibility at this level of abstraction" refactoring.
- anticensor 8y agoISO/IEC C committee does not think like that. The people considering it portable assembler are long gone away from that committee. The current members consider it a mid-high level programming language with a defined abstract semantics. Conditional compilation is just a compatibility workaround to them.