Software Exceptions: Difference between revisions
From COMP15212 Wiki
pc>Yuron No edit summary |
Yuron [PHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) m (1 revision imported) |
(No difference)
|
Revision as of 12:46, 26 July 2019
On path: Exceptions | 1: Exceptions • 2: Reset • 3: System Calls • 4: Software Exceptions • 5: Emulator traps • 6: Memory Fault • 7: Interrupts • 8: Unix Signals |
---|
Depends on | Exceptions |
---|
Some processor architectures can generate exceptions during otherwise legitimate instruction execution. ARM does not do this but Intel x86 processors do. Some examples are:
- division by zero when using a
DIV
instruction - index out of bounds when using a
BOUND
(array bound check) instruction
The O.S. could halt the process as an error when these occur, or take some remedial action if the application has some appropriate handling mechanism.
Articles on Exceptions
Boot • Emulator traps • Errors • Exceptions • Interrupt Controller • Interrupt Service Routines (ISRs) • Interrupts • Memory Fault • Reset • Software Exceptions • System Calls