Chapter 21

Mixed Language Projects (C/C++ with Assembly)


This chapter explains the needs for mixed language projects, and how simple assembly code files can be created for ARM®, IAR, and GNU Compiler Collection tool chains. It also covers various ways to merge assembly code into C language projects, followed by a quick introduction of the ARM Architecture Procedure Call standard specification which defines the interface between C and assembly codes, as well as program code examples.


Assembly code file; Assembly functions for text I/O; Data memory allocation; Embedded assembler; Generic assembly functions for interrupt management; Inline assembler; Intrinsic functions; Procedure Call Standard for ARM® Architecture (AAPCS); The needs ...

Get The Definitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.