什么是网站前台静态化wordpress有广告插件下载
环境准备
.linux 系统(虚拟机)
 VS code
linux 编译过程
预处理: 把.h .c 展开形成一个文件.宏定义直接替换 头文件 库文件 .i
汇编: .i 生成一个汇编代码文件 .S
编译: .S 生成一个 .o .obj 
链接:  .o 链接 .exe .elf
gcc c语言
g++ c++语言	
 
gcc的使用
#include "stdio.h"#define P "hello gcc"
#define PRT printfint main()
{PRT(P);return 0;
}
 
-E 预处理
 gcc -E hello.c -o hello.i 	 生成.hello.i 文件 
 
生成.i文件的时候,已经将宏定义的的数据替换好了
 
-S汇编
 gcc -S hello.i -o hello.S
 
	.file	"hello.c".section	.rodata
.LC0:.string	"hello gcc".text.globl	main.type	main, @function
main:
.LFB0:.cfi_startprocpushq	%rbp.cfi_def_cfa_offset 16.cfi_offset 6, -16movq	%rsp, %rbp.cfi_def_cfa_register 6movl	$.LC0, %edimovl	$0, %eaxcall	printfmovl	$0, %eaxpopq	%rbp.cfi_def_cfa 7, 8ret.cfi_endproc
.LFE0:.size	main, .-main.ident	"GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609".section	.note.GNU-stack,"",@progbits 
-c 编译
gcc -c hello.S -o hello.o 生成一个二进制文件
-o 链接
gcc hello.o -o hello 链接成可执行文件
编译同目录下面的多个gcc文件
 gcc 1.c 2.c 3.c -o hello
