Skip to main content
Article thumbnail
Location of Repository

By 

Abstract

The overall goal (part 5) is to write a simulator for a subset of the MIPS R4000 instruction set that includes a virtual memory simulator and a loader. This loader will accept Unix System V standard "ELF " (Execution and Linking Format) executable files that are produced by the GNU C compiler and linker software built for MIPS. Three of the first 4 parts are separately testable demonstrations of components that will go into part 5. Part 1 "cpu": Simulator for the MIPS R4000 CPU that includes registers, a text dialog interface for memory, an elementary memory system that resembles the hardware support for bootstrap loading, some reports of the CPU simulation state and operation, and an elementary pipeline simulation to support delayed branches. It should also simulate a simple memory mapped output device so test programs can do output. Part 2 Learn to use gcc, as and ld, to produce MIPS "ELF " executable files (with objdump to view their outputs and objcopy to produce boot image files). Part 3 "mapper": Virtual memory simulator that maintains a memory mapping table, allocates C++ free store (dynamic) memory to simulate physical memory, and performs the memory access operations requested by the "cpu". Part 4 "elftool": Open, read and analyze components of an executable file in System 5 "ELF " format. Part 5 "simmips": Integrate the components of parts 1, 3 and 4, create a stack segment, and initialize any other needed process state to build a simulator for a simplified "abstract machine " that executes the process initialized from an executable file. For each part submission, a Makefile must be supplied so that the command gmake progname will build an executable named progname from all (and only) the user supplied program and header files in the current directory. Here, progname is cpu, mapper, elftool or simmips depending on the Part

Year: 2009
OAI identifier: oai:CiteSeerX.psu:10.1.1.135.3078
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://citeseerx.ist.psu.edu/v... (external link)
  • http://www.cs.albany.edu/~sdc/... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.