[fpc-pascal] Methods for autoupdating fpc programs?
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Oct 4 00:02:01 CEST 2015
Bo Berglund wrote:
> So this little program is24.5 Mbytes in size!
> Amazing and no wonder the MD5 calculation takes such a long time!
Program size and speed are generally not directly correlated (think of
e.g. inlining, which increases program size and which can also increase
speed at the same time).
> Why is FPC producing such an incredibly big program file?
a) you have debug info enabled
b) you don't have dead code stripping (a.k.a. "smart linking") enabled
This also suggests you are creating a debug build, which additionally
means you probably don't have any optimisations enabled.
> And why is Lazarus running as root?
Because you presumably started it as root. If you start an application
as a normal user, it cannot get root permissions (unless your lazarus
binary is marked as setuid root, but that's unlikely).
Jonas
More information about the fpc-pascal
mailing list