
11 Dec
2012
11 Dec
'12
3:38 p.m.
On 11/12/12 16:18, Paul A. Bristow wrote:
But I'm not sure if selection of instruction set should not be better done by the compiler at compile time, not at runtime. This should give the best possible performance (at the expense of different .exe versions). Or is this more useful for choosing the right version of .exe?
That is indeed the only correct way to do it, though you may do so at the object level and not the executable level. You still need however to have a mechanism to choose which version of your function/exe to call...