From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16595 invoked by alias); 10 May 2006 12:55:36 -0000 Received: (qmail 16585 invoked by uid 22791); 10 May 2006 12:55:34 -0000 X-Spam-Check-By: sourceware.org Received: from smtp815.9services.com (HELO mail1.9services.com) (84.96.72.80) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 May 2006 12:55:31 +0000 Received: from eyebox.webdyn.com ([192.168.2.1]) by mail1.9services.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 10 May 2006 14:55:27 +0200 Received: from [192.93.121.161] ([192.93.121.161]) by eyebox.webdyn.com (8.9.3/8.9.3) with ESMTP id PAA23525; Wed, 10 May 2006 15:10:14 +0200 Message-ID: <4461E29F.1030705@webdyn.com> Date: Wed, 10 May 2006 12:55:00 -0000 From: Emmanuel Viollet Reply-To: Emmanuel.Viollet@webdyn.com User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org References: <4461ADA1.5050103@webdyn.com> <20060510091234.GA11815@lunn.ch> In-Reply-To: <20060510091234.GA11815@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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] Memory footprint X-SW-Source: 2006-05/txt/msg00073.txt.bz2 Andrew Lunn a écrit : > On Wed, May 10, 2006 at 11:08:49AM +0200, Emmanuel Viollet wrote: >> Hi. >> >> I can't find any information on this on the internet, so perhaps you can >> help me out... >> >> I need to compile a kernel with PPP. Do you have any idea of the >> footprint of eCOS with lwIP and PPP? >> I compiled a minimal program with PPP for my Olimex LPC2106 evaluation >> board, and it takes 560Kb. >> Does this size seem normal? > > Is that the size of the elf or the size of the binary which is > actually loaded onto the target? > > 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? I am using a Phlips 2106 processor with 128Kb EEPROM and 64Kb RAM. Do you think I can fit in LwIP + PPP + Zlib in this? The linker is giving me errors : $ arm-elf-gcc -I../../ecos_install/include hello.c -L../../ecos_install/lib -Ttarget.ld -nostdlib /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2624c de a.out de la section .text n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2624c de a.out de la section .fini n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff1 de a.out de la section .rodata n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .rodata1 n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .fixup n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .gcc_except_table n'est pas dans la région rom /usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x4001ca20 de a.out de la section .bss n'est pas dans la région ram I'm sorry, but the error messages are in french. From what I gather, the code is too big for RAM and ROM? "the address 0x2624c from a.out in section .text is not in the rom region"? -- Emmanuel Viollet Software engineer Webdyn e-mail : Emmanuel.Viollet@webdyn.com Tel : +33 (0)1 39 04 29 55 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss