File tree Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Original file line number Diff line number Diff line change 55
66## 补充说明  
77
8- ** as命令**  GNU组织推出的一款汇编语言编译器 ,它支持多种不同类型的处理器。
8+ ** as命令**  是GNU组织推出的一款汇编语言编译器 ,它支持多种不同类型的处理器。
99
10- ###   语法  
10+ ### 语法  
1111
1212``` shell 
13- as(选项)(参数) 
13+ as [选项] [参数] 
1414``` 
1515
16- ###   选项  
16+ ### 选项  
1717
1818``` shell 
1919-ac:忽略失败条件;
@@ -33,8 +33,44 @@ as(选项)(参数)
3333--statistics:打印汇编所用的最大空间和总时间。
3434``` 
3535
36- ###   参数  
36+ ### 参数  
3737
3838汇编文件:指定要汇编的源文件。
3939
40+ ### 示例  
4041
42+ 编译一个汇编文件并生成目标文件
43+ 
44+ ``` shell 
45+ as -o output.o source.s
46+ ``` 
47+ 
48+ 忽略调试指令并生成目标文件
49+ 
50+ ``` shell 
51+ as -ad -o output.o source.s
52+ ``` 
53+ 
54+ 生成包含调试信息的目标文件
55+ 
56+ ``` shell 
57+ as -g -o output.o source.s
58+ ``` 
59+ 
60+ 包括宏扩展并生成目标文件
61+ 
62+ ``` shell 
63+ as -am -o output.o source.s
64+ ``` 
65+ 
66+ 打印汇编所用的最大空间和总时间
67+ 
68+ ``` shell 
69+ as --statistics -o output.o source.s
70+ ``` 
71+ 
72+ 跳过空白和注释预处理并生成目标文件
73+ 
74+ ``` shell 
75+ as -f -o output.o source.s
76+ ``` 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments