Re: which compiler compiled?

Paul Pluzhnikov <ppluzhnikov@charter.net>
3 Feb 2005 22:39:12 -0500

          From comp.compilers

Related articles
which compiler compiled? just4me@nowhere.com (Lawrence) (2005-01-30)
Re: which compiler compiled? ppluzhnikov@charter.net (Paul Pluzhnikov) (2005-02-03)
Re: which compiler compiled? jeremy.wright@microfocus.com (Jeremy Wright) (2005-02-03)
| List of all articles for this month |

From: Paul Pluzhnikov <ppluzhnikov@charter.net>
Newsgroups: comp.compilers
Date: 3 Feb 2005 22:39:12 -0500
Organization: Compilers Central
References: 05-01-100
Keywords: code
Posted-Date: 03 Feb 2005 22:39:12 EST

"Lawrence" <just4me@nowhere.com> writes:


> Is there a way I can tell which compiler compiled an executable?


Yes with some compilers and some executable formats.
E.g. on HP-UX for PA-RISC:


$ aCC leak.C
$ odump -compunit a.out


  ...
      6 0 ANSI C++ leak.C
/tmp
ctcom options = -inst compiletime -diags 523 -inline_power 1 -longbranch 2 -unique_strings on -cachesize 256


                    B3910B ; A.03.26
                    Compile Time: Sun Jan 30 2005 11:45:31.000000000 PST
                    Source Time: Sun Jan 30 2005 11:45:25.000000000 PST


$ what `which aCC`
/opt/aCC/bin/aCC:
                HP aC++ B3910B A.03.26
                HP aC++ B3910B A.03.25 Language Support Library


Cheers,
--
In order to understand recursion you must first understand recursion.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.