Skip to Content
Programming Embedded Systems in C and C++
book

Programming Embedded Systems in C and C++

by Michael Barr
January 1999
Beginner to intermediate
200 pages
7h 43m
English
O'Reilly Media, Inc.
Content preview from Programming Embedded Systems in C and C++
Locating 25
If the same symbol is declared in more than one object file, the linker is unable to
proceed. It will likely appeal to the programmer—by displaying an error mes-
sage—and exit. However, if a symbol reference instead remains unresolved after
all of the object files have been merged, the linker will try to resolve the reference
on its own. The reference might be to a function that is part of the standard
library, so the linker will open each of the libraries described to it on the com-
mand line (in the order provided) and examine their symbol tables. If it finds a
function with that name, the reference will be resolved by including the associ-
ated code and data sections within the output object file.
*
Unfortunately, the standard library routines often require some changes before
they can be used in an embedded program. The problem here is that the standard
libraries provided with most software development tool suites arrive only in object
form. So you only rarely have access to the library source code to make the neces-
sary changes yourself. Thankfully, a company called Cygnus has created a free-
ware version of the standard C library for use in embedded systems. This package
is called newlib. You need only download the source code for this library from the
Cygnus web site, implement a few target-specific functions, and compile the
whole lot. The library can then be linked with your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

Embedded Systems Object-Oriented Programming in C and C++

Embedded Systems Object-Oriented Programming in C and C++

Israel Gbati

Publisher Resources

ISBN: 1565923545Catalog PageErrata