2 ms·
This makes no sense because C89 is defined for execution on a abstract machine, something which doesn't exist and thus has no hardware. Such beliefs are howeve
by tialaramex 3y ago
This makes no sense because C89 is defined for execution on a abstract machine, something which doesn't exist and thus has no hardware.
Such beliefs are however compatible with the inveterate C programmer excuse that their nonsense programs should be correct if only the standards committee, compiler vendors, OS designers, and everybody else in the known universe were not conspiring to defeat their clear intent.
- kps 3y agoFrom the C89 Rationale, “The potential for efficient code generation is one of the most important strengths of C. To help ensure that no code explosion occurs for what appears to be a very simple operation, many operations are defined to be how the target machine’s hardware does it rather than by a general abstract rule. An example of this willingness to live with what the machine does can be seen in the rules that govern the widening of char objects for use in expressions: whether the values of char objects widen to signed or unsigned quantities typically depends on which byte operation is more efficient on the target machine.”
- tialaramex 3y ago> many operations are defined My emphasis. Undefined Behaviour is not an example of operations being defined.