Question: Sally is a software engineer working on developing a safety - critical control system for an aerospace application. One of her tasks was to create

Sally is a software engineer working on developing a safety-critical control system for an aerospace application. One of her tasks was to create an exception handler for the application. She considered saving the registers to the stack when an exception occurred. An experienced colleague advised against that approach due to potential drawbacks. Explain the reasons why storing registers in the stack is considered a bad idea by also giving an example of how doing so could go wrong, and suggest another approach for Sally to correctly save the registers in an exception handler.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!