Embedded Systems Architecture
上QQ阅读APP看书,第一时间看更新

Conventions used

There are a number of text conventions used throughout this book.

code_in_text: Indicates code words in text, folder names, filenames, file extensions, pathnames,  user input, and interaction with the command console. Here is an example: "Compile the source file, hello.c,  to produce the executable."

A block of code is set as follows:

#include <stdio.h>
int main(void) {
printf("Hello, world!");
return 0;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

CFLAGS=-Wall

hello.o: hello.c
gcc -c -o $(@) $(^) $(CFLAGS)

Any command-line input or output is written as follows:

$ gcc -c -o hello.o hello.c
$ make clean

Commands for the debugger console are written as follows:

> add-symbol-file app.elf 0x1000
> bt full

Bold: Indicates a new term, an important word, or words that you see onscreen.