[Klone-users] Reduce size of klone executable

Stefano Barbato barbato at koanlogic.com
Thu May 14 06:18:40 EDT 2009


Hello,

do you have any big file in the webapp/ directory (images, Flash  
stuff, etc.)?

I just compiled a demo klapp that uses .kl1 (C) and .klx (C++) pages  
and the kloned binary that comes out is 154004 bytes long.

Here's the code I used (just change the KLONE_VERSION from 2.1.0 to  
2.2.0):

	http://www.koanlogic.com/download/klone/klapp-minimal-libcxx-1.1.0.tar.gz

Could you post your top-level Makefile?

s


On 14/mag/09, at 10:26, diakat 2000 wrote:

> Hello Stefano,
>
> yes, I tried to strip it, too (I'm using linux).
> But the size is still to big.
>
> Because of the need to reduce file size for nearly 1 MB, I think I
> have to optimize the pages.
> Therefore I wonder about the strong increasing size of klone, after
> adding one (klx)-page.
>
> Is this a regular behavior?
>
> Best regards,
> d.
>
>
>
>
>
>
> 2009/5/14 Stefano Barbato <barbato at koanlogic.com>:
>>
>> On 14/mag/09, at 09:27, diakat 2000 wrote:
>>
>>> Hello,
>>>
>>> I want to reduce the size of my executable.
>>>
>>> I know about release/debug versions and the use of the -O(2)  
>>> compiler
>>> option.
>>> But the size of the executable is still too big.
>>>
>>> So I added my pages one by one my webapp, for testing. I find out,
>>> that the size of the klone executable is growing by 3x the size of  
>>> the
>>> added page.
>>>
>>> For example:
>>> klone before adding: 1412 KB
>>> testpage.klx: 42 KB
>>> klone after adding: 1530 KB (= a difference of  118 KB)
>>>
>>> Why is it like that?
>>>
>>> Are there some common advices to keep the klone size small / or to
>>> reduce the file size?
>>>
>>>
>>> Best regards,
>>> d.
>>
>>
>> are you using mingw or cygwin?
>>
>> did you strip the kloned file (run "strip kloned")?
>>
>> s
>>
>>
>> _______________________________________________
>> Klone-users mailing list
>> Klone-users at koanlogic.com
>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>




More information about the Klone-users mailing list