Chapter 20

Assembly and Mixed Language Projects

Abstract

This chapter looks into software development using assembly language and mixed language projects. Topics include how to create assembly language projects with the ARM® tool chain (e.g., ARM DS-5™) and gcc, and various ways to mix assembly code and C code together using inline assembler, embedded assembler, intrinsic functions.

Keywords

Assembly; Embedded assembler; Inline assembler; AAPCS; Intrinsic functions; Idiom; Mixed language; gcc; Keil™

20.1 Use of assembly code in projects

For small projects, it is possible to develop the whole application in assembly language. However, this is rare in application development because:

• It is much harder as you need to have a good understanding of ...

Get The Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors, 3rd 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.