- Sussex University Home Page - COGS Home Page - EASy Home Page -
HOME
- Home - Resources - Robot Gallery - Projects - Links -
Hardware: -
Software: -
Examples: -

LEGO Robot Resources
Commands

compileCode [-o|-output output file] [-v|-verbose] [-h|-help]

This command compiles all the file ending in .c in the current directory into an srec file that is suitable for uploading into the robot. The output parameter provides the name of the resulting output file (if the compilation is successful). The verbose flag shows in greater detail what the program is doing and is really there for debugging purposes.

The compiler used is a cross compiler that converts C code into m68k object code, then into a resulting srec format. This format is a text file that basically is a hexidecimal version of the machine code of the program.

Remember that it assumes all files ending in .c in the current directory is a module in the program. Therefore if you wish not to include a file, you either have to change or remove it's extension, or move it ot of the way.

It is not compulsory to use this program. The alternative is to build your own Makefile. An example of one of these is show in appendix A. Note that you have to use a special linker script and crt0.o file.

Copyright Sussex University 2002
Maintained by wb23@sussex.ac.uk