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 live online training, plus books, videos, and digital content from nearly 200 publishers.