Click here to Skip to main content
Sign Up to vote bad
good
See more: Linux
Which files extensions are generated at various phases of compiler?
Posted 31 Oct '11 - 5:15
Osia308


3 solutions

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!
  Permalink  
Comments
Espen Harlinn - 31 Oct '11 - 11:34
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.
  Permalink  
Comments
Espen Harlinn - 31 Oct '11 - 11:34
5'ed!
SAKryukov - 31 Oct '11 - 13:50
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 206
1 Sergey Alexandrovich Kryukov 175
2 Richard MacCutchan 145
3 Tadit Dash 140
4 Santhosh G_ 125
0 Sergey Alexandrovich Kryukov 10,294
1 OriginalGriff 7,955
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 31 Oct 2011
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid