Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Which files extensions are generated at various phases of compiler?
Posted

Depends on the language, and the compiler / linker combo. Some go straight to executable, others can produce a file per pass - and there can be a lot of passes!
 
Share this answer
 
Comments
Espen Harlinn 31-Oct-11 11:34am    
5'ed!
You've tagged it with Linux. On Linux the extension does not matter at all. For example, gcc typically generates filename.out as the output binary. But you could rename it to just filename if you wanted. Doesn't affect anything.
 
Share this answer
 
v3
Comments
Espen Harlinn 31-Oct-11 11:34am    
5'ed!
Sergey Alexandrovich Kryukov 31-Oct-11 13:50pm    
This is a good point, my 5. Actually, something like extension can be used even on Linux, but this is nothing more than a naming convention of having a file name ending with dot-something. Also, no modern file system use the concept of "extension". Even on Windows: NTFS does not have it.
--SA
The files generated vary from system to system and even compiler to compiler. You should read the compiler documentation to get this information.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900