Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-09

Shared library

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carsten Bager

If I create a shared library with this source code, the lib file has a size of 368806 bytes. Can I do anything to reduce the size.

Carsten

------------------------

library u;
Procedure Test;
Begin
WriteLn('------- Test OK --------');
End;

exports
Test;
end.
-------------------------
Free Pascal Compiler version 2.0.2 [2006/06/26] for arm Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM
Compiling u.pas
Assembling u
Linking libu.so
13 Lines compiled, 0.7 sec

Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 www.beas.dk

Reply by email

Graeme Geldenhuys
to Carsten Bager

Try the 'strip' command. I know it works with executables, not sure about libraries. It is included in the FPC bin directory.

eg: strip <library name>

Regards,
- Graeme -

Carsten Bager wrote 50 lines
If I create a shared library with this source code, the lib file has a size of 368806 bytes. Can I do anything to reduce the size. Carsten ------------------------ library u; Procedure Test; Begin WriteLn('------- Test OK --------'); End; exports Test; end. ------------------------- Free Pascal Compiler version 2.0.2 [2006/06/26] for arm Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for ARM Compiling u.pas Assembling u Linking libu.so 13 Lines compiled, 0.7 sec -- Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 www.beas.dk _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
There's no place like 127.0.0.1

Reply by email