際際滷

際際滷Share a Scribd company logo
ANSI C
Language
Preface
Lection 4
弌仂亟亠亢舒仆亳亠
 弌弍仂从舒 仗仂亞舒仄仄
 亠仗仂亠亳仆亞
 仂仄仗亳仍亳
 Linker Script File
 ELF File
 Map File
 弌亳亠仄 弍仂从亳
 仂亳于从舒 亳 仂仍舒亟从舒
03.04.2019 1:20 Preface 2
弌弍仂从舒 仗仂亞舒仄仄
C Source Code
Proj1.c
Expanded C Source Code
Proj1.i
Header Files,
Defines,
Conditional compilation
PREPROCESSING
Assembly Code
Proj1.asm
COMPILATION
Relocatable Object Code
Proj1.obj
ASSEMBLIG
LINKING
Object Code of Library
Functions
*.lib, *.obj
Scatter File
*.sct
Executable Code
Proj1.elf;
*.axf; *.hex; *.bin
仗仂仍仆磳仄亶 舒亶仍
(executable file) 
亟于仂亳仆亶 舒亶仍,
仂亟亠亢舒亳亶
亳仗仂仍仆磳仄亶 从仂亟
(仄舒亳仆仆亠 亳仆从亳亳)
仗仂亞舒仄仄 亳仍亳
弍亳弍仍亳仂亠从亳
3
Make file
4
舒仗从 弍仂从亳 仗仂亠从舒
make
make f makefile
舒仗从 仂亳从亳
亠亰仍舒仂于
make clean
make f makefile clean
亠仗仂亠亳仆亞
亠仗仂亠仂 亟舒仍磳
亳亰 从仂亟舒 从仂仄仄亠仆舒亳亳,
仗亠仂弍舒亰亠 从仂亟 于
仂仂于亠于亳亳 
仄舒从仂舒仄亳 亳 于仗仂仍仆磳
亳仆亠 亟亳亠从亳于,
仆舒亳仆舒ム亳亠 
亳仄于仂仍舒 束#損
5
#if
#ifdef
#ifndef
#else
#elif
#endif
#include
#define
#undef
#line
#error
#pragma
仂仄仗亳仍亳
仂仄仗亳仍仂  仂
仗亠亳舒仍仆舒
仗仂亞舒仄仄舒, 从仂仂舒
仗亠亠于仂亟亳 亠从
仗仂亞舒仄仄,
仆舒仗亳舒仆仆亶 仆舒 磶从亠
仗仂亞舒仄仄亳仂于舒仆亳, 于
仆舒弍仂 仄舒亳仆仆 从仂亟仂于.
亳仆从仂于从舒
仂仄仗仂仆仂于亳从 
亳仆仄亠仆舒仍仆舒
仗仂亞舒仄仄舒, 从仂仂舒
仗仂亳亰于仂亟亳 从仂仄仗仂仆仂于从
(束仍亳仆从仂于从損): 仗亳仆亳仄舒亠
仆舒 于仂亟 仂亟亳仆 亳仍亳
仆亠从仂仍从仂 仂弍亠从仆
仄仂亟仍亠亶 亳 仂弍亳舒亠 仗仂
仆亳仄 亳仗仂仍仆亳仄亶 仄仂亟仍.
7
Linker Script File
8
ELF File
9
Map File
10
弌亳亠仄 弍仂从亳
于仂仄舒亳亰舒亳 弍仂从亳  舒仗
仗仂亠舒 舒亰舒弍仂从亳
仗仂亞舒仄仄仆仂亞仂 仂弍亠仗亠亠仆亳,
亰舒从仍ム舒ム亳亶 于 舒于仂仄舒亳亰舒亳亳
亳仂从仂亞仂 仗亠从舒 亰舒亟舒,
亠舒亠仄 仗仂亞舒仄仄亳舒仄亳 于 亳
仗仂于亠亟仆亠于仆仂亶 亟亠亠仍仆仂亳.
(CMake, Automake, Yocto)
11
仂亳于从舒 亳 仂仍舒亟从舒
12

More Related Content

C language lect_04_preface