Installing the MIPS Environment over Cygwin on Windows

(Soohyun Cho, Dept. of Computer Science, TAMU)

To install Cygwin, do the following steps:

To install the cross compiler for our mips64emulator you need to build your own binutils and gcc instead of the ones provided by Cygwin. (Remember, the ones provided by Cygwin generate code for the PC, not for the MIPS.)

To install mips64emul, perform the following steps:

To test your cross compiler and mips64emulator installation try compiling and running the hello.c code explained in the documentation of mips64emul, here. The hello.c code is located in the doc directory in the mips64emul directory.

Note that the documentation has a bug, at least until recently: In order to run a program you need to include the -a option. This is needed to tell the emulator what machine we want to emulate ("barebone" in our case). In order to execute the test program , we therefore type:
$ ./mips64emul -q -a hello
If it works you have succeeded to install cross compiler and mips64emulator on your Cygwin.

Note: To run MP1 source codes on Cygwin you have to modify the given makefile a little because prefix of our cross compiler was different from that used in the example. (You may avoid this by making TARGET=mips64-elf when you build the cross compiler.) Modify the makefile to include the lines below and comment-out the original codes using "#":
C++ = mips64-unknown-elf-g++
LD = mips64-unknown-elf-ldd
AS = mips64-unknown-elf-gcc
.

We are sure that you will have much fun with the machine problems. Let us know if there is any problem!


Soohyun Cho