Chapter 21

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

Abstract

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.

Keywords

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.