On Mon, 10 Mar 2008, Alvaro Lopez Ortega wrote: > On 10 Mar 2008, at 20:25, Taher Shihadeh wrote: > > Ey Taher :) > > > I don't work with embedded systems, but maybe compiling with -Os > > will help. > > As I understand it, it's the option of choice to produce the > > smallest possible files. > > Good point. Aside from that optimization, I would try to link Cherokee > statically with it own libraries, and dynamically with the rest of the > system libraries such as libc or libpthread. I bet that could help to > build a much lighter binary.
I don't know whether Cherokee already does it, but linking against dietlibc instead of glibc often helps prune binary size. Stripping the symbols by compiling with "-s" is very important too, it took Hello World down from 500k to 5k in the test I just ran. It makes it much harder to debug though. Tom _______________________________________________ Cherokee mailing list [email protected] http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
