Software Exceptions: Difference between revisions
From COMP15212 Wiki
Yuron [PHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) m (1 revision imported) |
W81054ch [PHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
-->{{Path|Exceptions|4}}<!-- | -->{{Path|Exceptions|4}}<!-- | ||
-->{{#invoke:Dependencies|add|Exceptions,2}} | -->{{#invoke:Dependencies|add|Exceptions,2}} | ||
Some processor architectures can generate exceptions during | Some processor architectures can generate exceptions during otherwise legitimate instruction execution. ARM does not do this but | ||
otherwise legitimate instruction execution. ARM does not do this but | |||
Intel x86 processors do. Some examples are: | Intel x86 processors do. Some examples are: | ||
Line 9: | Line 8: | ||
*index out of bounds when using a <code>BOUND</code> (array bound check) instruction | *index out of bounds when using a <code>BOUND</code> (array bound check) instruction | ||
The O.S. could halt the process as an [[Errors|error]] when these | The O.S. could halt the process as an [[Errors|error]] when these occur, or take some remedial action if the application has some | ||
occur, or take some remedial action if the application has some | |||
appropriate handling mechanism. | appropriate handling mechanism. | ||
---- | ---- | ||
{{PageGraph}} | {{PageGraph}} | ||
{{Category|Exceptions}} | {{Category|Exceptions}} |
Latest revision as of 10:03, 5 August 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