News Focus
News Focus
icon url

Elmer Phud

04/28/03 3:02 PM

#3259 RE: gollem #3258

Gollem -

doesn't the compiler check the cpu of the machine on which you are compiling?

It could also check the cpu of the machine it's running the compiled code on, no?


icon url

KeithDust2000

04/28/03 6:13 PM

#3289 RE: gollem #3258

Gollem, what I do know (and commented on) is that you don´t need a P4 class machine to generate SSE2 specific code, and that used to be true for INTEL´s compilers as well. I don´t know if that has been changed or not, but I would think it hasn´t.

icon url

sgolds

04/28/03 8:50 PM

#3328 RE: gollem #3258

gollem, actually the compiler shouldn't do that. It should only look at the compile flags because the host machine is not necessarily the same CPU as the target machine.

Most commonly, when time comes to build a set of versions for testing on various machines, a 'full build' is done - the makefile runs the compiler multiple times to make executables for the full set of targets, each tucked away in its own build directory.