Installing the MIPS Environment over Cygwin on Windows

(Soohyun Cho, Dept. of Computer Science, TAMU

Updated by Seung-Jin Sul, Jan 26 2006)


To install Cygwin, do the following steps:

To install the cross compiler for our gxemul 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 gxemul, perform the following steps:

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

In order to execute the test program , we therefore type:
$ ./gxemul -q -E testmips hello_mips
If it works you have succeeded to install cross compiler and gxemul 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!


Seung-Jin Sul