Once you understand how to write and run a small program, you'll want to check out some of the more advanced techniques required to write a real application program. In this chapter, we cover the following topics:
How to read the user guide
How recompile
Customizing the start-file and linker script file
Checking for stack overflow
Using optimizations
Generating PROM programming files
Using the Debugger
Working with the target
Interrupt handling
How to build a program including other programming languages
The user guide volumes Using the Coral 66 Compiler, Using the Assembler Linker and Utilities and Using the Debugger are written to be applicable to any supported target computer and therefore include no target-specific information. See the Appendices of the document for additional information.
The prefix for the compile command is "m68k-coff-" and this prefix must be given on the gcc command, and on any other commands that run target-specific programs.
Basic Command | M68000 Command | Description |
---|---|---|
addr2line | m68k-coff-addr2line | A tool that converts target addresses to source line numbers |
ar | m68k-coff-ar | The object code library tool |
as | m68k-coff-as | The assembler |
c66 | m68k-coff-c66 | The Coral 66 compiler |
gasp | m68k-coff-gasp | A preprocessor for C and assembly language |
gcc | m68k-coff-gcc | The multi-language compiler |
gdb | m68k-coff-gdb | The symbolic debugger |
ld | m68k-coff-ld | The linker |
nm | m68k-coff-nm | The object code symbol dump tool |
objcopy | m68k-coff-objcopy | A tool to copy and reformat object code files |
objdump | m68k-coff-objdump | A tool to dump object code files |
ranlib | m68k-coff-ranlib | A tool to build an index in an object code library |
run | m68k-coff-run | The target simulator |
size | m68k-coff-size | A tool to print the size of each object code section |
strings | m68k-coff-strings | Tool to print any object code strings |
strip | m68k-coff-strip | A tool to remove debug information from object code files |