What CPU does DMD optimize for?
Trevor Parscal
Trevor_member at pathlink.com
Tue Feb 21 09:36:00 PST 2006
In article <dtf8t0$1uh4$1 at digitaldaemon.com>, Def says...
>
>Thanks heaps for your answer so far, but still...:
>
>In article <dtbb0k$ju7$1 at digitaldaemon.com>, Walter Bright says...
>
>>"Def" <Def_member at pathlink.com> wrote in message
>>news:dtau3r$7i5$1 at digitaldaemon.com...
>>> Hello, I assume that DMD generates code for 386 and higher. Is this
>>> correct?
>
>This question remains unanswered. I assume 386 and higher, but is it
>correct? It is important to mark my apps to the end user as "needs 386 or
>higher" or whatever.
>
>>> If so, what processor will DMD optimize the code for if the -O option is
>>> invoked?
>>
>>Pentium 6
>
>This is an unusual term, for me at least. If, for example, we refer to
>http://en.wikipedia.org/wiki/Pentium_1 then which processor is the one
>you mean exactly?
>
>Def
>
>
Although I have no clue which CPU DMD optimizes for - it makes me think - would
it be possible (sorry, don't mean to just invent features for walter to build
here) to have some predefined versions that corespond to the cpu flags should
there ever be any added?
AKA - if -OPentium4 is ever an option, than "version = Pentium4" or however
walter would prefer to format it - that way our code could take the compilation
perameters and do something usefull with it as well - like when using inline ASM
to optimize for a CPU...
Anyhoo - just a thought.
Thanks,
Trevor Parscal
More information about the Digitalmars-d
mailing list