sGlobalSmartlink/de
Zurück zu den globalen Compilerdirektiven.\
Die globale Compilerdirektive $SMARTLINK weist den Compiler an, das Programm für smartlink zu compilieren.
Durch smartlink kann die Grösse des Programms verringert weden.\
Vorgehensweise von smartlink:
Das Programm wird in logische Einheiten aufgteilt. Dabei wird für jedes Unterprogramm eine eigene Objektdatei erstellt.
Es werden nur die Objektdateien in das Programm eingebunden, die vom Programm benötigt d. h. vom Programm aufgerufen werden.\
Hinweis:
Wenn die globale Compilerdirektive {$SMARTLINK ON} ist, dann wird der Compiliervorgang des Programms langsamer.
Wohlgemerkt, der Compiliervorgang wird langsam, nicht das Programm. Das Programm wird dadurch kleiner und benötigt weniger Speicher.\
Die globale Compilerdirektive $SMARTLINK hat zwei Schalter ON und OFF.\
Beispiele:\
// SMARTLINK muss vor dem Deaklarations-Abschnitt stehen
// Schaltet smartlink ein
{$SMARTLINK ON}
Unit uTest;
Interface
...Die Globale Compilerdirektive $SMARTLINK hat ihr Gegenstück in der Kommandozeilen-Option -CX.\
--Olaf 08:34, 13 February 2013 (UTC)
From the Free Pascal wiki, page "sGlobalSmartlink/de", as it stood on 2014-02-03 after a change by Swen, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 2 people, 2013–2014
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Olaf | Created page | |
| Olaf | (minor) | |
| Olaf | (minor) | |
| Olaf | (minor) | |
| Swen | (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
