|
From: Bryan M. <om...@br...> - 2006-08-28 13:03:10
|
Josef Weidendorfer wrote: > Hi Bryan, > > On Monday 28 August 2006 13:09, Bryan Meredith wrote: >> What versions of what compilers are we all using for x86 and x86-64? > > I would say this very much depends on the user ;-) > Of course I most often use the GCC which was installed with my distribution > (GCC 4.1 on OpenSuse 10.1), but I also have the Intel compiler installed. > This way, the binary is produced by ICC and the library code by GCC. > > But of course, when I want to use a given Valgrind tool, and there is > a suggestion for the best compiler/options to use, I can arrange it > when I want the tool to work perfectly. > >> Would it be acceptable to determine the compiler version at compile time >> and insert/remove code sections based upon it? > > Why can't you detect the instrumentation you need at runtime? > I would say that especially with valgrind, instrumentation > can be much more dynamic depending on the environment than with any other > instrumentation method. > Josef, I agree that would be the best solution but how does one work out the compiler, given the IR (or is it buried in the debug info somewhere). The other issue that you have highlighted is people having more than one compiler on their system, such that there are mixed code bases. See the reply to Julian as on reflection, this was truly a lousy idea and I need to dig further with what I have before I start doing anything really weird. Bryan |