From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 497 invoked by alias); 10 May 2006 15:24:49 -0000 Received: (qmail 479 invoked by uid 22791); 10 May 2006 15:24:47 -0000 X-Spam-Check-By: sourceware.org Received: from sta-204-188-98-27.rockynet.com (HELO hermes.chez-thomas.org) (204.188.98.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 May 2006 15:24:38 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id 2057C37C80D0; Wed, 10 May 2006 09:24:37 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 63A1C19501A2; Wed, 10 May 2006 09:24:31 -0600 (MDT) From: Gary Thomas To: Andrew Lunn Cc: Grant Edwards , ecos-discuss@ecos.sourceware.org In-Reply-To: <20060510151944.GF11815@lunn.ch> References: <4461ADA1.5050103@webdyn.com> <20060510091234.GA11815@lunn.ch> <4461E29F.1030705@webdyn.com> <20060510145342.3518553FFF@rivatek.dnsalias.net> <20060510151944.GF11815@lunn.ch> Content-Type: text/plain Date: Wed, 10 May 2006 15:24:00 -0000 Message-Id: <1147274671.9638.160.camel@hermes> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: Memory footprint X-SW-Source: 2006-05/txt/msg00082.txt.bz2 On Wed, 2006-05-10 at 17:19 +0200, Andrew Lunn wrote: > On Wed, May 10, 2006 at 09:53:42AM -0500, Grant Edwards wrote: > > >> what does arm-elf-size say? > > > > > > $ arm-elf-size.exe a.out > > > text data bss dec hex filename > > > 41920 1512 8028 51460 c904 a.out > > > > > > I suppose that this means the binary will be 51460Kb in size? > > > > That means the binary will require 43432 bytes of ROM > > (41920+1512) and 9540 bytes of RAM (8028+1512). > > I suppose i should read the man page, but couldn't part of data be > rodata and so will not be copied to RAM at startup? > > [Goes and reads the man page] > > There is no mention of the rodata. Hum... The read-only data section will be included in the "text" segment as printed by this tool. If you want to see the details of how things are really laid out, use objdump -h. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss