From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19962 invoked by alias); 11 May 2006 07:12:11 -0000 Received: (qmail 19851 invoked by uid 22791); 11 May 2006 07:12:08 -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; Thu, 11 May 2006 07:12:04 +0000 Received: from eyebox.webdyn.com ([192.168.2.1]) by mail1.9services.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 11 May 2006 09:12:00 +0200 Received: from [192.93.121.161] ([192.93.121.161]) by eyebox.webdyn.com (8.9.3/8.9.3) with ESMTP id JAA04488; Thu, 11 May 2006 09:26:53 +0200 Message-ID: <4462E3A3.7040309@webdyn.com> Date: Thu, 11 May 2006 07:12: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> <4461E29F.1030705@webdyn.com> <20060510141728.GE11815@lunn.ch> In-Reply-To: <20060510141728.GE11815@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/msg00087.txt.bz2 Andrew Lunn a écrit : >> $ 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? >> > > No. These are in units of bytes, not kilo bits. 51460Kb is about > 6MBytes which makes no sense. > True. In fact, 51460Kb, is closer to 50Mb... ;) I mistyped and added a "K". My mistake!! :) > The binary will be 41920 + 1512 bytes. You also need 8028bytes of > statically allocated RAM. The size of the heap is not show here. > OK. Thanks. >> 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? >> > zlib will be a problem. In its default configuration it will allocate > 64Kbytes from the heap..... You can make is use less memory, but it > will then no longer decompress data compressed with the default zlib > configuration. So i don't recommend zlib. lwip + PPP does seems > reasonable with 128Kb + 64Kb. > I only need to compress data for gzip using zlib. I don't need to uncompress files coming from some other place. Do you think zlib could work with only 32Kb? Do you know of any other gzip compatible libraries? >> 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? >> > > This should fit, so it suggests a problem with your linker script. > Is it trying to put everything in RAM? > > The program I was trying to compile in the second part has nothing to do with the numbers I gave in the first part of this email. This program contains lwIP + PPP + zlib + debug information + lots of other things. I just wanted to check if the error messages I was seeing were due to code too large. -- 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