This project simulates the handling of CPU execution, system calls, and interrupt events based on a provided trace file. The simulation uses a vector table to manage interrupts and generates a detailed log of execution events.
interrupts.h: Header file containing structure definitions, constants, and function declarations for the simulation.interrupts.c: Implementation of the simulation logic, including trace file reading, event handling, and output logging.
trace#.txt: A file describing a sequence of events (CPU execution, SYSCALLs, and END_IOs) with durations for each event.
execution#.txt: The output file generated by the simulation, logs each event with timestamps, durations, and descriptions.
test#.sh: Automates the run process. Double-clicking these files will execute the tests and produce theexecution.txtoutput.
- The program reads the event trace from
trace.txt. - Outputs all logged events to
execution.txt.