Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Looking to buy compiler

2005-11-07 by rtstofer

--- In lpc2000@yahoogroups.com, "FreeRTOS Info" <nospam@F...> wrote:
>
> > As far as I know, I am using newlib.  However, the uIP web server
> > application uses vsprintf and that pulls in a LOT of library 
code.
> > The entire network project seems to take about 23k (0000h - 
5887h)
> > and the library adds nearly another 32K (5888h - D244h).
> 
> More than I would expect.
> 
> I originally got the FreeRTOS lwIP demo running using CrossWorks.  
When I
> came to compile the same code using the standard command line GCC 
(with
> newLib) I found it to be *much* more stack hungry and had to 
increase the
> stack allocated to the WEB server and lwIP tasks.
> 
> While increased stack usage was not a surprise as the CrossWorks 
build used
> the libraries without floating point support (for printf, etc.) 
the size of
> the difference was surprising.  I have not yet analysed the map 
files to see
> where the difference is occurring.
> 
> Regards,
> Richard.
> 
> 
> http://www.FreeRTOS.org
>

I am in no danger of running out of memory on the LPC2106 even if I 
add FreeRTOS and my CF/MP3 stuff.

Worst case: HTTP needs D244h (including library), FreeRTOS (from the 
LPC2106 demo) needs 578Ch and CF/MP3 needs 46D8h for a total of 
170A8h.  There is certainly some common code that will reduce the 
total size.

In reviewing the design, I may not have to move to the larger 
LPC2138 or LPC2148 to get additional pins.  I don't need very much 
RAM so even if I do make the move for pins, I will still be ok.

If I use Telnet instead of HTTP, the library requirement drops way 
down and the telnet application (only) takes 5E34h bytes (24116) 
reducing the code space by around 29000 bytes.

Funny thing: the entire CP/M operating system only took about 8K 
including the BIOS and some of that (the console command processor) 
could be overlayed.

The very powerful macro assembler only needs 32k and the PL/I 
compiler will run on a 64k machine.

I like to older machines!

Richard

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.