Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which compiler, compiled this file?

I am using gnu gcc and armcc to compile a few C files. How can I get the information about which compiler compiled which file?

Ex: test.cpp is being compiled by armcc or gnu gcc.

The makefile is very complicated and I am looking out for a command by which I can check which compiler compiled which file.

Any ideas?

like image 583
aditya3524 Avatar asked Jun 15 '26 15:06

aditya3524


1 Answers

Sometimes you can look at the file with a hex editor and tell if the compiler wrote its name into the file.

like image 70
AbsoluteƵERØ Avatar answered Jun 17 '26 10:06

AbsoluteƵERØ