supplierdeeply

Why is self build DISKBOOT.BIN larger than official build?

  • 2 Replies
  • 1048 Views
Why is self build DISKBOOT.BIN larger than official build?
« on: 17 / July / 2013, 10:47:50 »
Advertisements
Hallo,

I am very curious to ask , why  is the self build version "DISKBOOT.BIN" larger than official build?
I use the [CHDK shell v. 3.44] Windows GUI for  building the CHDK for SX230HS FW 1.01b, with everything set at default, original source code is "branches_release-1_1-2951".
The resulting DISKBOOT.BIN is 237KB while the official build is only 157KB.

(official build is download from the http://chdk.wikia.com/wiki/Downloads,   by the name sx230hs-101b-1.2.0-2951-full_BETA.zip)

And after load them into my camera, both version works. But the self build version takes more camera memory (about 90KB)compared to the official build.

Is this because the official build does not have so much  modules as the self compiled version?
Or is there a easy way to disable some modules , for example the GPS ?


Thanks in advance!

Best,

Zell

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Why is self build DISKBOOT.BIN larger than official build?
« Reply #1 on: 17 / July / 2013, 12:09:00 »
Hi !

Try compiling 'trunk' in CHDK-Shell, because that will result in a 1.2.0 version of CHDK. That should get you
a comparable size to the official build you mentioned; depending on the compiler version you select it could
even be slightly smaller (newer compilers optimize slightly better)
The trunk version actually has more of the code in modules, which means that the base CHDK binary is smaller
and memory is only used for modules that are active.

hope that helps,

wim
« Last Edit: 17 / July / 2013, 12:34:08 by whim »

Re: Why is self build DISKBOOT.BIN larger than official build?
« Reply #2 on: 19 / July / 2013, 13:34:37 »
 :) Thanks!
I tried trunk version, Yes, as you said!
And by disable some modules like PTP, build Size can be further reduced.

 

Related Topics