linux C file format analysis

c语言文件格式

source file

file.c 
  • C source, ASCII text

 

pretreatment 预处理文件

file.i 
  • C source, ASCII text

 

assembler file 汇编文件

file.s    
  • assembler source, ASCII text
  • can only assembler 

 

file.S   
  • assembler source, ASCII text
  • can pretreatment + assembler
      

object file 目标文件

file.o    
  • ELF 32-bit LSB relocatable
  • type ELF, need link to turn exe file
 

exe file 可执行文件  

file.bin               
  • .S to bin ,only bin data, not include address 
 
file
file.out 
file.elf   
  • ELF 32-bit LSB executable
  • type ELF ubder Linux , object file,
 
file.hex             
  • ASCII text 
  • burn into board, include data and address
                 

你可能感兴趣的:(linux C file format analysis)