Previous Next Up Title Contents Top Library

2.4.1.3. RUNNING AND DEBUGGING EXECUTABLES

- Create static or dynamic executable :

Linker Flag Compiler Flag Action
-a archive -Wl,-a,archive Use archive form of all subsequent lib
-a shared -Wl,-a,shared Use shared form of all subsequent lib

Example : To select archive form of the GPHIGS library and shared for others : -Wl,-a, archive -lgphigs -Wl,-a,shared .... - Debug an executable : Compile with -g option and run xdb: The following table describe some xdb simple functions

Command Action
t print stack
b func stop in func
b 123 stop at line 123
r run
c continue
s step
S next
p var print var


Previous Next Up Title Contents Top Library