On 29 May 2004, at 13:05, Matthias Hryniszak wrote:

Here you see a test procedure that's NOT called. with FPC 2.0 the executable file is 133120 long. Ok, let's turn this into the standard Hello, world! app and just leave the two useses be:

program Hello;
{$APPTYPE CONSOLE}
uses
 Classes, SysUtils;
begin
 Writeln('Hello, world!');
end.

And what do we have? 132608 executable. AFAIK 132608 is not the same as 133120 so there MUST BE a problem with eliminating dead/ unused code.

If you want dead code to be stripped from your own written code, you must turn on the generation of smartlinkable code (-CX), and of course also smartlinking (-XX)


Jonas


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to