Re: [fossil-users] optimize size of binary

2011-07-14 Thread Rene
On Thu, 14 Jul 2011 08:03:17 +1000, Steve Bennett wrote:
 On 13/07/2011, at 10:35 PM, Rene wrote:

 On Tue, 12 Jul 2011 14:48:42 +0200, Müller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only 
 a
 few MB flash, so i tried to strip the binary - but the best result
 was
 about 1.1MB.

 I read that someone managed to build a 330kB binary, any 
 suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?

 Regards, Rainer.

 Development Software Systems
 Festo Gesellschaft m.b.H.
 LINZER STRAßE 227
 Austria - 1140 WIEN

 Firmenbuch Wien
 FN 38435y

 Tel: +43(1)91075-362
 Fax: +43(1)91075-282
 www.festo.at


 I'm not the one who build a small binary. You could try to:

 use ulibc http://www.uclibc.org/  (I'm not sure if fossil will
 compile/work)

 That's won't help. Either uClibc or glibc are going to be linked
 as shared libraries and the size indicated above excludes libc.

 use compression http://upx.sourceforge.net/

 We use squashfs (http://squashfs.sourceforge.net/) on many of our 
 systems.
 Using this approach, all your files, including binaries and shared 
 libraries
 will be compressed in flash. Better than compressing apps one at a 
 time.

 Cheers,
 Steve

 --
 µWeb: Embedded Web Framework - http://uweb.workware.net.au/
 WorkWare Systems Pty Ltd
 W: www.workware.net.au  P: +61 434 921 300
 E: ste...@workware.net.au   F: +61 7 3391 6002





 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

if you don't have that kind of control over your phone or tablet the 
individual compression is a nice option.

Anyway it was an interesting exercise.
-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] optimize size of binary

2011-07-13 Thread Rene
On Tue, 12 Jul 2011 14:48:42 +0200, Müller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only a
 few MB flash, so i tried to strip the binary - but the best result 
 was
 about 1.1MB.

 I read that someone managed to build a 330kB binary, any suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?

 Regards, Rainer.

 Development Software Systems
  Festo Gesellschaft m.b.H.
  LINZER STRAßE 227
  Austria - 1140 WIEN

  Firmenbuch Wien
  FN 38435y

  Tel: +43(1)91075-362
  Fax: +43(1)91075-282
  www.festo.at

  Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten
 Adressaten bestimmt. Jede Form der Kenntnisnahme,
  Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts
 dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
  bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu
 setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
  Material von Ihrem Computer zu loeschen.

  This e-mail and any attachments are confidential and intended solely
 for the addressee. The perusal, publication, copying or
  dissemination of the contents of this e-mail by unauthorised third
 parties is prohibited. If you are not the intended recipient of this
  e-mail, please delete it and immediately notify the sender.

I'm not the one who build a small binary. You could try to:

use ulibc http://www.uclibc.org/  (I'm not sure if fossil will 
compile/work)
use compression http://upx.sourceforge.net/

with regards to disable wiki and bug tracking you could change relevant 
sections
like

/*
** WEBPAGE: tktview
** URL:  tktview?name=UUID
**
** View a ticket.
*/

if your would  change WEBPAGE: to  WEB: then the fossil preprocessor 
will not
include those functions. It is a bit of work, I don't know if it works.
(I wonder if it could be make configurable e.g. -DWIKI=1 -DTICKET=1 to 
compile
in this subsystems.)
if it will save you a lot of space I don't know.

upx compression is the easiest and simplest and can give you instant 
results.
The other 2 options is a lot of work.
But I find the ulibc one interesting. Maybe I'll give it a try myself 
:-)

-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] optimize size of binary

2011-07-13 Thread Müller, Rainer
Hello,

I managed to reduce the size to 850kB by removing help texts, wiki and ticket 
system. Yes, would be nice to make this configurable.

Regards, Rainer.

-Original Message-
From: fossil-users-boun...@lists.fossil-scm.org 
[mailto:fossil-users-boun...@lists.fossil-scm.org] On Behalf Of Rene
Sent: Wednesday, July 13, 2011 2:35 PM
To: fossil-users@lists.fossil-scm.org
Subject: Re: [fossil-users] optimize size of binary

On Tue, 12 Jul 2011 14:48:42 +0200, Mueller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only a
 few MB flash, so i tried to strip the binary - but the best result 
 was
 about 1.1MB.

 I read that someone managed to build a 330kB binary, any suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?

 Regards, Rainer.

 Development Software Systems
  Festo Gesellschaft m.b.H.
  LINZER STRAssE 227
  Austria - 1140 WIEN

  Firmenbuch Wien
  FN 38435y

  Tel: +43(1)91075-362
  Fax: +43(1)91075-282
  www.festo.at

  Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten
 Adressaten bestimmt. Jede Form der Kenntnisnahme,
  Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts
 dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
  bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu
 setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
  Material von Ihrem Computer zu loeschen.

  This e-mail and any attachments are confidential and intended solely
 for the addressee. The perusal, publication, copying or
  dissemination of the contents of this e-mail by unauthorised third
 parties is prohibited. If you are not the intended recipient of this
  e-mail, please delete it and immediately notify the sender.

I'm not the one who build a small binary. You could try to:

use ulibc http://www.uclibc.org/  (I'm not sure if fossil will 
compile/work)
use compression http://upx.sourceforge.net/

with regards to disable wiki and bug tracking you could change relevant 
sections
like

/*
** WEBPAGE: tktview
** URL:  tktview?name=UUID
**
** View a ticket.
*/

if your would  change WEBPAGE: to  WEB: then the fossil preprocessor 
will not
include those functions. It is a bit of work, I don't know if it works.
(I wonder if it could be make configurable e.g. -DWIKI=1 -DTICKET=1 to 
compile
in this subsystems.)
if it will save you a lot of space I don't know.

upx compression is the easiest and simplest and can give you instant 
results.
The other 2 options is a lot of work.
But I find the ulibc one interesting. Maybe I'll give it a try myself 
:-)

-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Development Software Systems
Festo Gesellschaft m.b.H.
LINZER STRAssE 227
Austria - 1140 WIEN

Firmenbuch Wien
FN 38435y

Tel: +43(1)91075-362
Fax: +43(1)91075-282
www.festo.at

Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten 
bestimmt. Jede Form der Kenntnisnahme,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails 
durch unberechtigte Dritte ist unzulaessig. Wir
bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls 
Sie nicht der Adressat dieses E-Mails sind und das
Material von Ihrem Computer zu loeschen. 

This e-mail and any attachments are confidential and intended solely for the 
addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is 
prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] optimize size of binary

2011-07-13 Thread Rene
On Wed, 13 Jul 2011 14:39:04 +0200, Müller, Rainer wrote:
 Hello,

 I managed to reduce the size to 850kB by removing help texts, wiki
 and ticket system. Yes, would be nice to make this configurable.

 Regards, Rainer.

strip and compress with upx deliver on linux
   1.0M Jul 13 16:58 fossil
   415k Jul 13 16:58 fossilupx

under windows it became
1.2M Jul 11 11:54 fossil.exe
553K Jul 11 11:54 fossilupx.exe

-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] optimize size of binary

2011-07-13 Thread Stephan Beal
On Wed, Jul 13, 2011 at 2:35 PM, Rene renew...@xs4all.nl wrote:

 /*
 ** WEBPAGE: tktview
 ** URL:  tktview?name=UUID
 **
 ** View a ticket.
 */

 if your would  change WEBPAGE: to  WEB: then the fossil preprocessor
 will not
 include those functions. It is a bit of work, I don't know if it works.


perl -i -pe 's/\bWEBPAGE\b/EBPAGE/g' src/*.c

but that probably won't reduce the binary size.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] optimize size of binary

2011-07-13 Thread Steve Bennett
On 13/07/2011, at 10:35 PM, Rene wrote:

 On Tue, 12 Jul 2011 14:48:42 +0200, Müller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only a
 few MB flash, so i tried to strip the binary - but the best result 
 was
 about 1.1MB.
 
 I read that someone managed to build a 330kB binary, any suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?
 
 Regards, Rainer.
 
 Development Software Systems
 Festo Gesellschaft m.b.H.
 LINZER STRAßE 227
 Austria - 1140 WIEN
 
 Firmenbuch Wien
 FN 38435y
 
 Tel: +43(1)91075-362
 Fax: +43(1)91075-282
 www.festo.at
 
 
 I'm not the one who build a small binary. You could try to:
 
 use ulibc http://www.uclibc.org/  (I'm not sure if fossil will 
 compile/work)

That's won't help. Either uClibc or glibc are going to be linked
as shared libraries and the size indicated above excludes libc.

 use compression http://upx.sourceforge.net/

We use squashfs (http://squashfs.sourceforge.net/) on many of our systems.
Using this approach, all your files, including binaries and shared libraries
will be compressed in flash. Better than compressing apps one at a time.

Cheers,
Steve

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au  P: +61 434 921 300
E: ste...@workware.net.au   F: +61 7 3391 6002





___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] optimize size of binary

2011-07-12 Thread Müller, Rainer
Hello, I want to use fossil on an ARM based platform. We have only a few MB 
flash, so i tried to strip the binary - but the best result was about 1.1MB.
I read that someone managed to build a 330kB binary, any suggestions on this 
issue? I don't need the bug tracking or wiki feature but i doubt they can be 
deactivated, right?

Regards, Rainer.



Development Software Systems
Festo Gesellschaft m.b.H.
LINZER STRAßE 227
Austria - 1140 WIEN

Firmenbuch Wien
FN 38435y

Tel: +43(1)91075-362
Fax: +43(1)91075-282
www.festo.at

Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten 
bestimmt. Jede Form der Kenntnisnahme,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails 
durch unberechtigte Dritte ist unzulaessig. Wir
bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls 
Sie nicht der Adressat dieses E-Mails sind und das
Material von Ihrem Computer zu loeschen.

This e-mail and any attachments are confidential and intended solely for the 
addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is 
prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users