From: Wolfgang Denk Date: Thu, 26 Mar 2009 22:15:55 +0100 Subject: [U-Boot] Size of external u-boot commands In-Reply-To: <9e4733910903261350v21bf16c5l5729927048e0df3b@mail.gmail.com> References: <9e4733910903260647w549a97acv7101ea9347a767bb@mail.gmail.com> <20090326202754.26FC5832E406@gemini.denx.de> <9e4733910903261350v21bf16c5l5729927048e0df3b@mail.gmail.com> Message-ID: <20090326211555.26FCC832E406@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jon Smirl, In message <9e4733910903261350v21bf16c5l5729927048e0df3b@mail.gmail.com> you wrote: > > > I'm not sure how you calculate sizes, or how you link your > > applications. Note that classical standalone application do not link > > against any libraries, so they are really small: > > The *.bin files are ending up at 60-75K. Adding this to the linker Yes, but that's mostly empty space, due to the alignment requirments in the linker script. > script fixes it. > .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) > *(.gcc_except_table.*) } > > Approximately 60KB of zeros are getting inserted into the *.bin files. But this is just a "gap", it e. it is not used space; if you have bigger program code, or if you change your alignment requirements, you will see different (much smaller) values. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If a packet hits a pocket on a socket on a port, And the bus is interrupted as a very last resort, And the address of the memory makes your floppy disk abort, Then the socket packet pocket has an error to report! - Ken Burchill?