Free Pascal questions (Developers)
> However FPC allows for a lot of tweaking of the linker, e.g. passing GNU
> ld linker params using -k will get you there:
> fpc -k"-Map mymapfile.map" helloworld
> (works for me WITH the doscompiler, but under XP)
Works for me too. Thanks!
> > 2) How to achieve minimum size of executables? I'm using "-O3 -Os -XX"
> > now. Unfortunately FPC's help screen doesn't show default settings as
> TPC
> > does.
>
> -CX to compile units, -XX to compile/link the final file. The optimization
> stuff is really peanuts. (IIRC it works a bit better in the development
> versions because Florian wants to target embedded CPUs, AVR Atmel in the
> near future, but in the 2.2 series it is peanuts)
>
> If you want to strip the result use -XXs, but some non Unix versions of ld
> do this badly, so there I usually strip with the provided separate
> strip.exe binary.
I see, but it still doesn't answer my initial question.
> The original idea was -XX is "link smartlink" and -CX is "compile
> smartlink". This because you might not want to smartlink for speed in
> development builds, but don't want to recompile everything. (in the
> beginning both -CX and -XX were very slow. This was later sped up by
> eliminating AS).
But then that's a bug in FPC's documentation! Chart.pdf shows "XX = $SMARTLINK = Use smartlinking." Btw: Did you receive my mails from last Friday?
> Note that, like TP, most $'s are not global, but for the compiled unit (or
> mainprogram) only. So then you'd have to put them in an inc and include
> that anywhere.
That would be OK, but the problem is that not all command-line options have a source-code equivalent. So I have to use a mixture of both. That's what I dislike.
---
Forum admin
Complete thread:
- Free Pascal questions - rr, 24.08.2008, 23:31 (Developers)
- Free Pascal questions - marcov, 25.08.2008, 10:28
- Free Pascal questions - Laaca, 25.08.2008, 11:02
- Free Pascal questions - marcov, 25.08.2008, 11:22
- CHM - DOS386, 28.08.2008, 05:48
- Free Pascal questions - marcov, 12.10.2008, 13:46
- Free Pascal questions | 2.2.2 minimal test - DOS386, 18.10.2008, 03:13
- Free Pascal questions | 2.2.2 minimal test - Laaca, 18.10.2008, 12:10
- Free Pascal questions | 2.2.2 minimal test - DOS386, 19.10.2008, 01:29
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 08:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 09:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 20.10.2008, 11:00
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 20.10.2008, 18:09
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 21.10.2008, 12:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 22.10.2008, 15:22
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - rr, 22.10.2008, 15:59
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 22.10.2008, 19:26
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 25.10.2008, 01:31
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - ecm, 25.10.2008, 10:33
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 12:13
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 25.10.2008, 20:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 23:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 26.10.2008, 11:43
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 28.10.2008, 10:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 29.10.2008, 15:40
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 28.10.2008, 10:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 26.10.2008, 11:43
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 23:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 25.10.2008, 20:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 12:13
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - ecm, 25.10.2008, 10:33
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 25.10.2008, 01:31
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 22.10.2008, 15:22
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 20.10.2008, 11:00
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 09:01
- Free Pascal questions | 2.2.2 minimal test - Laaca, 18.10.2008, 12:10
- Free Pascal questions | 2.2.2 minimal test - DOS386, 18.10.2008, 03:13
- Free Pascal questions - rr, 25.08.2008, 22:07
- Free Pascal questions - marcov, 26.08.2008, 11:14
- Free Pascal questions - rr, 27.08.2008, 12:47
- Free Pascal questions - marcov, 28.08.2008, 00:17
- Free Pascal questions - Rugxulo, 28.08.2008, 04:30
- Free Pascal questions - rr, 28.08.2008, 09:50
- Free Pascal questions - rr, 28.08.2008, 09:54
- Free Pascal questions - Rugxulo, 28.08.2008, 11:00
- Free Pascal questions - rr, 28.08.2008, 13:08
- Free Pascal questions - Rugxulo, 28.08.2008, 11:00
- Free Pascal questions - Rugxulo, 28.08.2008, 04:30
- Free Pascal questions - marcov, 28.08.2008, 00:17
- Free Pascal questions - rr, 27.08.2008, 12:47
- Free Pascal questions - marcov, 26.08.2008, 11:14
- Free Pascal questions - Laaca, 25.08.2008, 11:02
- Free Pascal questions - marcov, 25.08.2008, 10:28