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.

> On 10 Mar 2008, Alvaro Lopez Ortega wrote:
>> Hi Raphaël,
>>
>> I do know that there are a couple of embedded systems experts around
>> and they may help us out here.
>>
>> Ajo, Gorka: some idea? :-)
>>
>> On 10 Mar 2008, at 18:33, Raphaël HUCK wrote:
>>>>> With these 3 modules compiled, cherokee takes 310508 bytes once
>>>>> stripped.
>>>>>
>>>>> Is it possible to reduce the size even more?
>>>>
>>>> Well, I would try to use the system libraries rather than  
>>>> creating a
>>>> completely static binary (by removing: --enable-static --enable-
>>>> shared=no). That should help.
>>>
>>> When I remove --enable-static --enable-shared=no I get the error I  
>>> was
>>> reporting at the beginning:
>>>
>>> (the error occurs in the cget directory)
>>>
>>> mips-linux-uclibc-gcc -g -O2 -o .libs/cget main.o
>>> proxy.o  ../cherokee/.libs/libcherokee-client.so -ldl

--
Greetings, alo.

_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to