Before anything else: I've read and digested the wiki page on binary size, and the related FAQ entry.

I'm knocking together a couple of programs in Lazarus to do jobs relating to IBM mainframes, partly because the existing tools run only on Windows, and partly to showcase Lazarus's capabilities in the mainframe community.

A program built using (some version of) Delphi comes to about 317Kb, but even with a manual strip the best I can do with Lazarus/FPC is pushing 3Mb. Now for domestic consumption I can live with that, but I don't think it looks very good if I publish binaries for download, and by the time I've got to several different OSes, CPUs and widget sets it's taking a significant amount of storage.

The FPC I'm using has been built from source, but I see I'm not using OPT='-CX' or similar... should I be?

The Lazarus I'm using has been built from source (make bigide). Should this have extra options to force everything possible in the LCL to be smartlinkable? Or once I've got the initial IDE should I be using it to rebuild itself, and in that case are there any options to be set?

Is there anything else obvious that I'm missing?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to