
19
Chapter 3
In this chapter:
• The Build Process
• Compiling
• Linking
• Locating
• Building das
Blinkenlights
3
3. Compiling, Linking,
and Locating
I consider that the golden rule requires that if I like a program I must
share it with other people who like it. Software sellers want to divide the
users and conquer them, making each user agree not to share with others.
I refuse to break solidarity with other users in this way. I cannot in good
conscience sign a nondisclosure agreement or a software license
agreement. So that I can continue to use computers without dishonor, I
have decided to put together a sufficient body of free software so that I will
be able to get along without any software that is not free.
—Richard Stallman, Founder of the GNU Project
The GNU Manifesto
In this chapter, we’ll examine the steps involved in preparing your software for
execution on an embedded system. We’ll also discuss the associated development
tools and see how to build the Blinking LED program shown in Chapter 2, Your
First Embedded Program. But before we get started, I want to make it clear that
embedded systems programming is not substantially different from the program-
ming you’ve done before. The only thing that has really changed is that each tar-
get hardware platform is unique. Unfortunately, that one difference leads to a lot
of additional software complexity, and it’s also the reason you’ll need to be more ...