OSI-M Tools
If you would like to compile and run the tools on your own machine, here is the information you need. Of course, we cannot guarantee that these tools will be portable to every possible machine you might want to run them on; they should at least compile easily on most recent versions of Linux®, however.
It should be possible to get this development environment running under windows with the help of Cygwin. Install cygwin, and be sure to install the flex and bison packages (they are under the development header). Compiler Toolchain
Most modern Linuxes and BSDs have an ELF toolchain compatible with the 6.828 labs. That is, the system-standard gcc, as, ld and objdump should just work. If your machine is in this camp, disable the i386-jos-elf- tool prefix in your make setup by adding the following line to conf/env.mk:
GCCPREFIX=
If you are in the minority and using something other than standard x86 Linux® or BSD, you will need the GNU C compiler toolchain, configured and built as a cross-compiler for the target 'i386-jos-elf'. You can download the specific versions we used via these links, although more recent versions of gcc and binutils should work too:
- ftp://ftp.gnu.org/gnu/binutils/binutils-2.15.tar.gz
- ftp://ftp.gnu.org/gnu/gcc/gcc-3.4.1/gcc-3.4.1.tar.gz
Once you've unpacked these archives, run the following commands as root:
$ cd binutils-2.15 $ ./configure --target=i386-jos-elf $ make $ make install $ cd ../gcc-3.4.1 $ ./configure --target=i386-jos-elf $ make $ make install
If there are errors compiling gcc when it gets to libstdc++, don't worry about it.
Then you'll have in /usr/local/bin a bunch of binaries with names like i386-jos-elf-gcc. It will also be necessary to change the GNUMakefile used in the labs to use i386-jos-elf-gcc instead of gcc. There are instructions for how to do this inside of GNUMakefile.