Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-02

New commandline switch

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Vreman

The compiler has a new commandline switch -Fa<unit1>[,unit2]. When a program is compiled the compiler will first load unit1 and unit2 before the uses line is parsed. This can be used to load units that need to early initialization like cmem,cthreads,lineinfo,heaptrc.

Example: "-g -Faheaptrc,lineinfo" this is same as "-glh".

Reply by email

Olle Raab
to Peter Vreman

05-02-06 22.41, skrev Peter Vreman följande:

Show quoted text 6 lines
The compiler has a new commandline switch -Fa<unit1>[,unit2]. When a program is compiled the compiler will first load unit1 and unit2 before the uses line is parsed. This can be used to load units that need to early initialization like cmem,cthreads,lineinfo,heaptrc. Example: "-g -Faheaptrc,lineinfo" this is same as "-glh".

Nice !

This will make it especially easy to port Think Pascal programs, where the macos api is implicitelly included.

Olle

Reply by email