August 2015
Intermediate to advanced
400 pages
12h 18m
English
When we learned how to do bare metal programming in the last chapter, we created a bare metal application using assembly language. Once that step is complete, we want to move to the C language programming environment as soon as possible. With C, we are able to work more efficiently and can capitalize on better portability of our code. In this chapter, we explore how to switch from working with assembly language programs to the C language environment. The C language environment is prepared by a piece of assembly code called C startup code. After discovering how this code works, we consider how to call a C function from assembly language versus how to call an assembly function from the C language.
Read now
Unlock full access