[fpc-pascal] A simple "exception handling" question

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Jan 29 21:13:46 CET 2006

On 29 Jan 2006, at 21:00, Bob Richards wrote:

>> And also, smartlinked units contain .A files in addition to .O  
>> and .PPU files
> This brings up another nagging question I have had. If I set  
> SpartLinking ON, my
> executables are no smaller! Your reply here seems to suggest, that  
> I do not have any of my
> units compiled with SmartLinking enabled. There are no ".A" files  
> in my source tree.
> To enable Smart Linking, do I need to recomplile the sources with  
> some switch allowing
> SmartLinking to be active? The Docs, imply NO, that this is the  
> default; your reply above
> implies Yes.

To compile a unit so it is smartlinkable afterwards, compile it using  
the -CX option.

To enable the smartlinking of units compiled as above when you  
compile your program, use -XX.

In practice, you can always use both -CX and -XX, regardless of  
whether you're compiling a program or unit.


More information about the fpc-pascal mailing list