Hello Andrii,

During our latest deployment of Wt on an embedded target (ARM based),
we took some notes on disk space usage, which you can find in our
wiki:
http://www.webtoolkit.eu/wt/wiki/index.php/Wt_embedded
As you can see, we were able to reduce the size of the application to
300K, which meets your requirements. Given what you write in your
mail, I assume that your tests were also already based on the
information on that page. Did you follow all instructions there?

I can imagine that with the new features we added since then, the Wt
executable has grown a bit, but multiplied by 2 seems exagerated. We
could reinvestigate Wt's size, but I know that others on the list use
Wt in embedded projects too. Maybe someone can comment about the
increase of Wt size during the last 6 months?

Kind regards,
Wim Dumon.

2008/10/29 Andrii Arsirii <[EMAIL PROTECTED]>:
> Hi, all.
> I have positive experience in using witty.
> Now I'm evaluating witty for use in embedded device project (web
> configuration).
> Product is a manufactured device with a flash memory running under busybox
> (linux).
>
> Current web-interface implementation uses GoAhead web server. It's a
> terrible mix of shell, C, JavaScript, ASP, TCL.
> C++ object-oriented implementation would be much easier to maintain.
>
> Problem is that device has been designed to have only 4Mb of flash.
> Current GoAhead interface (with full logic) fits in 300Kb (gzip).
>
> I have tried to evaluate witty application size.
> I've made empty application with wthttp connector on i386 arch.
> Build options: MinSizeRel, -DHAVE_GNU_REGEX, -fvisibility=hidden, without
> libz and OpenSSL, static linkage with wt and libstdc++, stripping. WT
> version 2.1.5.
> It has size of 680Kb (gzip).
>
> [EMAIL PROTECTED]:~/GUI/app/build# ldd gui
>         linux-gate.so.1 =>  (0xb7fe2000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7fb7000)
>         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f9f000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e4f000)
>         /lib/ld-linux.so.2 (0xb7fe3000)
> [EMAIL PROTECTED]:~/GUI/app/build# file gui
> gui: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
> 2.6.8, dynamically linked (uses shared libs), stripped
> [EMAIL PROTECTED]:~/GUI/app/build# ls -la gui
> -rwxr-xr-x 1 root root 1820520 2008-10-29 09:57 gui
> [EMAIL PROTECTED]:~/GUI/app/build# gzip gui
> [EMAIL PROTECTED]:~/GUI/app/build# ls -la  gui.gz
> -rwxr-xr-x 1 root root 684153 2008-10-29 09:57 gui.gz
> [EMAIL PROTECTED]:~/GUI/app/build# upx gui
>                        Ultimate Packer for eXecutables
>   Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
> UPX 3.01        Markus Oberhumer, Laszlo Molnar & John Reiser   Jul 31st
> 2007
>
>         File size         Ratio      Format      Name
>    --------------------   ------   -----------   -----------
>    1820520 ->    583056   32.03%  linux/elf386
> gui
>
> Packed 1 file.
> [EMAIL PROTECTED]:~/GUI/app/build# ls -la gui
> -rwxr-xr-x 1 root root 583056 2008-10-29 09:57 gui
>
>
> My company will continue investigation of witty in case if I get for empty
> application at least the same size as GoAhead has.
> So I have to fit in <300Kb for empty witty application with libstdc++
> inlined (gzipped). Is that possible?
>
> Company's about to begin mass production of devices and in case of choosing
> witty you guys I guess will have a good contract :).
>
> Can you advice something else to decrease application size?
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to