Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] newlib usage

2006-03-23 by Robert Adsett

Quoting Pranav Mocha <parnay56@...>:
> First of all I would like to thank the moderator for allowing me join 
> this group. Being a newbe, I have some pretty basic questions-
> 1. To get functions such as printf, sprintf etc., does one have to 
> link newlib? if so how can link newlib?

It's one of several libraries that will provide that function.

> 2. Is newlib to be used as a standard library? and how/where can I 
> get the list of functions and their prototypes?

Yes it is meant to be used as a standard libary.  Function Prototypes are
available in any standard C library reference.  Basically it implements the C
standard library functions for ANSI C90.

It does, however, need to have interface functions provided so it can adapt to
different processors and boards.  One example is newlib-lpc
http://www.aeolusdevelopment.com/Articles/download.html

> I am sorry for asking such basic questions, but having worked on Keil 
> and turbo c, i could not really get GCC right. Thank you all in 
> advance.

You might want to start with something like WINARM to limit the number 
of things
you need to learn at one time.

Robert

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.