4THE SAMPLE ASSEMBLY CODE TEMPLATE
This chapter introduces a simple template that you’ll be using for all future code samples in this book. The template splits the assembly code over four files. This organization keeps reusable parts separate from sample-specific ones and makes it easier to find the code associated with the features each sample illustrates.
You’ll learn how to compile the source code of the template, and you’ll learn a few tricks involving the map and symbol files that you can instruct the linker to generate during compilation. These provide additional information that may come in handy as you inspect and debug the samples. Finally, you’ll run the base sample, our first sample based on the template, in BGB to verify that everything ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access