2 ms·
Processor instructions are not _strongly typed_. They take bit patterns as input and output new bit patterns. The bits are untyped, the choice of operation de
by reichstein 19d ago
Processor instructions are not _strongly typed_.
They take bit patterns as input and output new bit patterns.
The bits are untyped, the choice of operation decides how the bits are interpreted. Nothing enforces the type of that result, you can always interpret it as something else. It may not be meaningful. Or it may be, like a fast inverse square root.
Strong typing means that each value has an intrinsic type, and there is no reinterpreting it. What CPUs do is not that, or rather the only types are "_n_-bits" (_n_ a power of 2).