[fpc-devel]RTL debugging

Jonas Maebe jonas at zeus.rug.ac.be
Tue Oct 31 10:41:51 CET 2000


>The problem is that normal application builds are causing the RTL pieces
>to recompile as well.  Only executing the Makefile should cause the
>RTL to compile, not a uses clause in a application unit.  

To the compiler, the RTL units look no different than any other units. 
This means that if yyou use -B (build) command line switch, the compiler 
will recompile all units it can find the full sources for, including the 
RTL units. To solve this, you simply have to copy the compiled RTL units 
to another dir (e.g. c:\pp\units\go32v2) and put this unit dir in your 
-Fu path before the c:\pp\rtl\go32v2 one (or simply remove the latter).

This is what the "make install" command normally does afaik. You should 
be able to build a normal debugging rtl using the supplied makefiles by 
issueing the command

make DEBUG=1

Alternatively, you can use

make OPT="-g"

(all parameteres in OPT are directly passed to the compiler)


Jonas




More information about the fpc-devel mailing list