How to Build a Program for Use with the MULTI Debugger

Green Hills MULTI provides a powerful source level debugger. To take advantage of the MULTI Debugger, use the -G option when building the executable program. This option causes the Green Hills compilers to place extensive information regarding variables, data types, and source files into auxiliary debug file information that MULTI uses (see Chapter 6, "Debug Formatting").

The -G option may appear anywhere on the driver command line when source files are compiled and also when object files are linked, as shown in this example:

% ccmcore -G file1.c file2.c -o program
% multi program

MULTI also supports debugging of optimized code; you can use the -G option with optimization enabled, although for best debugging results, the optimizer should be disabled.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.