

InterviewSolution
Saved Bookmarks
1. |
Solve : Detecting the compiler? |
Answer» <html><body><p>Hi ,<br/><br/>can i how how to check the compiler by seeing the <a href="https://interviewquestions.tuteehub.com/tag/assembly-752995" style="font-weight:bold;" target="_blank" title="Click to know more about ASSEMBLY">ASSEMBLY</a> code of the file ?<br/>i.e. whether the file is compiled by Visual c++ , Visual Basic or Borland Delphi ?<br/><br/>Thanks..<br/><br/>Regards,<br/>Manikandan AUnless the compiler puts any extra metadata into the binary that it produces (which I'm not aware of any doing) I can't really think of any way to see the original language that was used from the binary file. Besides, knowing the language something was originally <a href="https://interviewquestions.tuteehub.com/tag/written-732709" style="font-weight:bold;" target="_blank" title="Click to know more about WRITTEN">WRITTEN</a> in when all you have is a compiled binary isn't particularly useful.Some compilers insert strings in the binary file, some do not. You can use a <a href="https://interviewquestions.tuteehub.com/tag/windows-22662" style="font-weight:bold;" target="_blank" title="Click to know more about WINDOWS">WINDOWS</a> port of the Unix strings utility to see what (if any) identifying text is contained. <br/><br/><a href="https://technet.microsoft.com/en-us/sysinternals/bb897439.aspx">http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx</a><br/><br/>It <a href="https://interviewquestions.tuteehub.com/tag/helps-1018140" style="font-weight:bold;" target="_blank" title="Click to know more about HELPS">HELPS</a> if you know, even vaguely, what to look for:<br/><br/>example:<br/><br/> Code: <a>[Select]</a>C:\FFmpeg\ffmpeg-git-1eabd71-win64-static\bin>strings ffmpeg.exe | find /i "gcc"<br/>gcc<br/>--prefix=/home/kyle/software/ffmpeg/packages/libvpx/libvpx-v0.9.7-p1-win64 --target=x86_64-win64-gcc<br/>90%% LAME compiled with buggy <a href="https://interviewquestions.tuteehub.com/tag/version-1444891" style="font-weight:bold;" target="_blank" title="Click to know more about VERSION">VERSION</a> of gcc using advanced optimizations<br/> Code: <a>[Select]</a>C:\avisub>strings AviSub.exe | find /i "delphi"<br/>\Delphi\RTL<br/><br/></p></body></html> | |