Download fulltext
Transcript
2. Background 12 Figure 2.5: Instruction pipeline stages 2.4 Software Toolchain The Heracles System has an open-source software toolchain based on the orignal GCC MIPS corss-compiler. A software toolchain provides a set of tools in order to run standard C code on a specific architecture. This is accomplished by running the C program through a compiler, which produces an assembly file. The assembly file is run through an assembler which creates object files of the assembly code. Finally, the object files are linked together through a linker script which produce the binary files contating the machine code with the instructions of the specific processor architecture. Each processor architecture requires their own unique software toolchain. Commonly for the processor cores the software toolchain produces a file called Executable and Linkable Format (.ELF). The MIPS processing core used in the Heracles System does not fully support all of the instructions used in the original MIPS R3000 series [12]. For this reason the Heracles System uses memory dump files called .MEM files (explained in section 2.4.2). 2.4.1 Executable and Linkable Format The Heracles software toolchain produces .MEM files, which are memory dump files containing the machine code for the processor. Software toolchains usually produce Executable and Linkable Format (.ELF) files. .ELF is a file type that is used both in