Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Linux
Which files extensions are generated at various phases of compiler?
Posted 31-Oct-11 6:15am
Osia308
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 at 31-Oct-11 11:34am
   
5'ed!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
v3
Comments
Espen Harlinn at 31-Oct-11 11:34am
   
5'ed!
SAKryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100