School of Computer Science
[Simulator Project Instructions]
This direction below assumes that you are already logged into your olympus account. You can use putty or ssh to access olympus.acs.ucf.edu.
  • Logon into your home directory.
  • There is a Makefile in the ~emontagn/project directory. Make a link to that file in your directory. Do not copy it to your directory. You can link to it with the following command:
            ln -s ~emontagn/project/Makefile2 Makefile
  • Execute make copyfiles. This will copy necessary files from Dr Montagne's directory into your current directory. After this, you should have the following files:
            obj1.c obj2.c obj3.c obj4.c obj5.c obj6.c simulator.c externs.h osdefs.h intro.doc
    delete externs.h (rm externs.h), osdefs.h and simulator.c from your directory.
  • To compile, execute make obj1.o. (Change this to obj2.o, obj3.o, etc. for other objectives)
  • To copy data files, execute make data1files. (Change this to data2files, date3files, etc. for other objectives)
  • To link, execute make sim.
  • To run your program, execute sim.
  • Debug and correct errors.
  • To run ossim and get a correct output file to compare, execute make correct-output. This creates a file ossim.out in your current directory, which contains the "correct" output for the current objective.
  • To compare your results, execute make compare OBJ=1(=2, =3, etc. for the others).
  • To submit, execute make submit.


  • Special Notes:
  • You can also develop the program in VC++. Just check the instructions at the end of this page.
  • You DO NOT need to edit any datafiles and configuration files, but I will encourage you to have a read on these files.
  • You will only submit the files obj1.c, obj2.c, etc. DO NOT modify the header files, simulator.c or the Makefile. We will not accept those files and will not use them when we compile and test you objectives.


  • Penalties for late submission are:
  • Up to 1 week late - 10% off.
  • From 1 week to 2 weeks late - 20%.
  • Objectives are not accepted more than 2 weeks late (i.e. 0% for that objective)


  • Running Simulator under VC++
    You can also do your programming in VC++.
  • Download all c files and data files from Olympus.
            *.c, *.h: simulator.c, obj1.c, obj2.c, obj3.c, obj4.c, obj5.c, obj6.c, osdefs.h, externs.h
            and related data files for respective objective.
    Replace the original files with modified externs.h, simulator.c. And put them in one directory, for example, c:\work.
  • Open Microsoft Visual C++, then Select File -> New -> Win32 Console Application
            Project Name: sim
            Location: C:\Work
    Click "OK" buttion, then choose "An empty project" and click "Finish" button.
  • You will get an empty workspace. Menu Project -> Add to Project -> Files, select all the source files
    (including simulator.c, extern.h, osdefs.h, obj1.c, obj2.c, obj3.c, obj4.c, obj5.c, obj6.c)
    After the above steps, you should be able to compile and run the simulator, though you will get a lot of warnings. Don't worry about those warnings. Just skip them and go ahead!
  • Write you own source code, debug and run it!
  • Note: Stick to the Standard C. Your project will be still graded in Olympus. So you should periodically upload your code to Olympus and make sure they work correctly.