3 ms·
Often that unsafe code is assembly language.
by User23 8y ago
Often that unsafe code is assembly language.
- AnimalMuppet 8y agoBeen there, done that. We were using Pascal (standard Pascal, no Turbo extensions) on a machine with memory mapped I/O. This means that we had to drop into assembly to write to the I/O registers. And that meant that we lost all type checking for those functions. We couldn't even check the number of parameters! Unsurprisingly, that led to a crash. That is: The extreme safety of Pascal led to a crash (when we had to do something that Pascal, in its wisdom, said we weren't allowed to do).
- snaky 8y agoPresuming it's not formally verified assembly code https://blogs.ncl.ac.uk/andreymokhov/spacecraft-control/ https://blogs.ncl.ac.uk/andreymokhov/spacecraft-control/