Chapter 2. Advanced Techniques

Table of Contents
2.1. How to Read the User Guide
2.2. How to Recompile
2.3. Customizing the Start File
2.4. Checking for Stack Overflow
2.5. Interrupt Handling
2.6. Generating PROM Programming Files

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:

2.1. How to Read the User Guide

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 CommandM68000 CommandDescription
addr2linem68k-coff-addr2lineA tool that converts target addresses to source line numbers
arm68k-coff-arThe object code library tool
asm68k-coff-asThe assembler
c66m68k-coff-c66The Coral 66 compiler
gaspm68k-coff-gaspA preprocessor for C and assembly language
gccm68k-coff-gccThe multi-language compiler
gdbm68k-coff-gdbThe symbolic debugger
ldm68k-coff-ldThe linker
nmm68k-coff-nmThe object code symbol dump tool
objcopym68k-coff-objcopyA tool to copy and reformat object code files
objdumpm68k-coff-objdumpA tool to dump object code files
ranlibm68k-coff-ranlibA tool to build an index in an object code library
runm68k-coff-runThe target simulator
sizem68k-coff-sizeA tool to print the size of each object code section
stringsm68k-coff-stringsTool to print any object code strings
stripm68k-coff-stripA tool to remove debug information from object code files