digitalmars.D - What CPU does DMD optimize for?
- Def (3/3) Feb 19 2006 Hello, I assume that DMD generates code for 386 and higher. Is this corr...
- Walter Bright (3/7) Feb 19 2006 Pentium 6
- pmoore (5/12) Feb 20 2006 Hi,
- Lionello Lunesu (11/31) Feb 20 2006 Hi,
- Walter Bright (3/8) Feb 20 2006 That's right.
-
Alexander Panek
(5/17)
Feb 20 2006
I wonder if that was a joke, or not...if it was, it's funny.
- Def (9/16) Feb 21 2006 This question remains unanswered. I assume 386 and higher, but is it
- Trevor Parscal (12/29) Feb 21 2006 Although I have no clue which CPU DMD optimizes for - it makes me think ...
- Walter Bright (4/14) Feb 21 2006 Yes, it's 386 or higher.
- pmoore (3/18) Feb 21 2006 Walter, Does DMC actually emit any Pentium Pro instructions eg. CMOV, FC...
- Walter Bright (7/12) Feb 23 2006 No.
- Def (2/17) Feb 22 2006
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= (13/29) Feb 22 2006 In case anyone wonders, the equivalent flags for GDC are:
- Niko Korhonen (6/12) Feb 23 2006 Wow! And we're currently at Pentium 4! Talk about bleeding edge!
Hello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?
Feb 19 2006
"Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...Hello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 19 2006
Hi, I was wondering the same thing. I assume you mean Pentium Pro. Am I right in thinking that this is the case for optimized and unoptimized code generation and that DMC does not emit SSE instructions? In article <dtbb0k$ju7$1 digitaldaemon.com>, Walter Bright says..."Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...Hello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 20 2006
Hi, I really wouldn't know, but don't count on it.. SSE instructions are useful is some very specific cases. I was surprised when I saw that Microsoft's VC8 compiler emits SSE instructions, but found out that the program (3D visualisation using OpenGL) ran slower with that feature turned on. SSE, as MMX and the other SSE's, is really meant to be written using inline assembly, when the programmer knows where to do batch operations on big arrays. L. "pmoore" <pmoore_member pathlink.com> wrote in message news:dtccf9$1lh4$1 digitaldaemon.com...Hi, I was wondering the same thing. I assume you mean Pentium Pro. Am I right in thinking that this is the case for optimized and unoptimized code generation and that DMC does not emit SSE instructions? In article <dtbb0k$ju7$1 digitaldaemon.com>, Walter Bright says..."Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...Hello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 20 2006
"pmoore" <pmoore_member pathlink.com> wrote in message news:dtccf9$1lh4$1 digitaldaemon.com...I was wondering the same thing. I assume you mean Pentium Pro. Am I right in thinking that this is the case for optimized and unoptimized code generation and that DMC does not emit SSE instructions?That's right.
Feb 20 2006
Walter Bright wrote:"Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...I wonder if that was a joke, or not...if it was, it's funny. <g> If not, what the hell is a Pentium 6? I guess a 686..? Regards, AlexHello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 20 2006
Thanks heaps for your answer so far, but still...: In article <dtbb0k$ju7$1 digitaldaemon.com>, Walter Bright says..."Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...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.Hello, I assume that DMD generates code for 386 and higher. Is this correct?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? DefIf so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 21 2006
In article <dtf8t0$1uh4$1 digitaldaemon.com>, Def says...Thanks heaps for your answer so far, but still...: In article <dtbb0k$ju7$1 digitaldaemon.com>, Walter Bright says...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"Def" <Def_member pathlink.com> wrote in message news:dtau3r$7i5$1 digitaldaemon.com...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.Hello, I assume that DMD generates code for 386 and higher. Is this correct?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? DefIf so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 21 2006
"Def" <Def_member pathlink.com> wrote in message news:dtf8t0$1uh4$1 digitaldaemon.com...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.Yes, it's 386 or higher.Pentium Pro.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?If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 21 2006
Walter, Does DMC actually emit any Pentium Pro instructions eg. CMOV, FCMOV? If not I would class it as 486 or higher as it definitely _does_ require a FPU. In article <dtfpdh$2gih$2 digitaldaemon.com>, Walter Bright says..."Def" <Def_member pathlink.com> wrote in message news:dtf8t0$1uh4$1 digitaldaemon.com...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.Yes, it's 386 or higher.Pentium Pro.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?If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 21 2006
"pmoore" <pmoore_member pathlink.com> wrote in message news:dtft1s$2kee$1 digitaldaemon.com...Walter, Does DMC actually emit any Pentium Pro instructions eg. CMOV, FCMOV?No.If not I would class it as 486 or higher as it definitely _does_ require a FPU.An FPU is not required, as Win32 will emulate the FPU on a 386 if there isn't one. This *could* be a problem on the DOS32 system, but DMC will generate calls to its own emulator for that. Also, the 386 did have a 387 FPU available for it.
Feb 23 2006
Walter, thanks for clarifying this. - Def In article <dtfpdh$2gih$2 digitaldaemon.com>, Walter Bright says..."Def" <Def_member pathlink.com> wrote in message news:dtf8t0$1uh4$1 digitaldaemon.com...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.Yes, it's 386 or higher.Pentium Pro.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?If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 22 2006
Walter Bright wrote:In case anyone wonders, the equivalent flags for GDC are: Old style: -march=i386 -mcpu=i686 New style: -march=i386 -mtune=pentium4 (as used by RPM, which builds as .i386.rpm by default even though usually a Pentium or better is required in practice) Where: i586 == pentium i686 == pentiumpro http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/i386-and-x86_002d64-Options.html --andersThis 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.Yes, it's 386 or higher.Pentium Pro.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?If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 22 2006
Walter Bright wrote:Wow! And we're currently at Pentium 4! Talk about bleeding edge! I just had to say it <g> -- Niko Korhonen SW DeveloperHello, I assume that DMD generates code for 386 and higher. Is this correct? If so, what processor will DMD optimize the code for if the -O option is invoked?Pentium 6
Feb 23 2006