While uncommon, it is possible for operating systems to generate code during execution or to modify previously executing code. For instance, an operating system might redefine a function at runtime, by overwriting the instructions for that function directly, into a more optimal version as it gathers statistics during execution.
A naive implementation of the translator might overlook this possibility and execute stale code under such circumstances. Why, for example, would a naive implementation of the translator in the paper have this problem? Then, devise a simple strategy that takes code generation into account and allows the VMM to re-translate modified code.
Local Stanford students should write up their response on a sheet of paper that includes their name and SUNetID. The sheet of paper with the response should be submitted immediately before lecture.
SCPD students should write up their response in a text file
response.virt.txt and upload it via the
submission and grades page.
You'll need to sign in with your SUNetID to access the page.
Responses will be accepted until one week after the corresponding
In either case, the response should be short, likely only a pithy paragraph in length.
Mondays and Wednesdays
1:30pm - 2:50pm
Join the CS240 Google group.
Lathrop Tech Lounge