Advanced C Programming: Integrating C and Assembly Language

Advanced C Programming: Integrating C and Assembly Language

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 0h 50m | 139 MB


Though a C compiler is efficient, it’s possible to work with both C and assembly, enjoying the speed of assembly with the lower development time of C. In this course, instructor Dan Gookin teaches you how to link C and assembly object files, call C functions from assembly code, as well as write assembly inline in a C function. Dan starts by explaining how to acquire an assembler and run C and assembly programs. He discusses how integrating C and assembly language can improve your coding skills and program performance. He walks you through how to create a program in assembly by processing the proper steps: assemble, link, and run. Dan shows you how the compiler translates C instructions into assembly and how to optimize your C code by using assembly to target bottlenecks. He goes over how to join assembly code with C code, as well as how to use C language functions in assembly code. In conclusion, Dan explains how to use assembly functions for C.

+ Table of Contents

1 Combining C with assembly language
2 Course requirements
3 Controlling the CPU with assembly and C
4 Exploring assembly language
5 Building assembly code
6 Challenge Build an assembly program
7 Solution Build an assembly program
8 Viewing C as assembly
9 Choosing C or assembly
10 Challenge Linking modules
11 Solution Linking modules
12 Putting assembly language into C code
13 Adding C to assembly
14 Writing inline assembly
15 Challenge Constructing a dialog
16 Solution Constructing a dialog
17 Passing arguments in assembly
18 Returning a value in assembly
19 Writing functions that pass and return values
20 Challenge Random range
21 Solution Random range