Thread overview
D, Intel and AMD
Oct 29, 2013
Chris
Oct 30, 2013
Iain Buclaw
Oct 30, 2013
John Colvin
Oct 30, 2013
Kagamin
Oct 30, 2013
evilrat
October 29, 2013
Are there any major differences in how D fares on AMD processors as opposed to Intel? The usual story is that Intel is faster and more precise when it comes to arithmetic operations (although I suspect that Intel is also very good at PR ;) Has anyone come across D related issues that are peculiar to one or the other architecture or brand?
October 30, 2013
On 29 October 2013 20:35, Chris <wendlec@tcd.ie> wrote:

> Are there any major differences in how D fares on AMD processors as opposed to Intel? The usual story is that Intel is faster and more precise when it comes to arithmetic operations (although I suspect that Intel is also very good at PR ;) Has anyone come across D related issues that are peculiar to one or the other architecture or brand?
>


The only peculiarity I've found is that code ran on Intel Atom is slower with the -O switch on DMD.  (There's a bug report somewhere for that).

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


October 30, 2013
On Tuesday, 29 October 2013 at 20:35:26 UTC, Chris wrote:
> Are there any major differences in how D fares on AMD processors as opposed to Intel? The usual story is that Intel is faster and more precise when it comes to arithmetic operations (although I suspect that Intel is also very good at PR ;) Has anyone come across D related issues that are peculiar to one or the other architecture or brand?

I can't think of anything intrinsic to D that would result in any difference when compared to similar c++ programs. DMD itself may sometimes make some poor decisions from an AMD perspective (as Ian mentioned), but if you're looking for every last drop of performance you will want to be using ldc or gdc anyway.
October 30, 2013
On Tuesday, 29 October 2013 at 20:35:26 UTC, Chris wrote:
> Are there any major differences in how D fares on AMD processors as opposed to Intel? The usual story is that Intel is faster and more precise when it comes to arithmetic operations (although I suspect that Intel is also very good at PR ;) Has anyone come across D related issues that are peculiar to one or the other architecture or brand?

I once changed an Athlon-based machine to a Celeron-based. If I remember dhrystone benchmarks correctly, the drop in ALU performance was significant.
October 30, 2013
On Wednesday, 30 October 2013 at 17:16:17 UTC, Kagamin wrote:
> On Tuesday, 29 October 2013 at 20:35:26 UTC, Chris wrote:
>> Are there any major differences in how D fares on AMD processors as opposed to Intel? The usual story is that Intel is faster and more precise when it comes to arithmetic operations (although I suspect that Intel is also very good at PR ;) Has anyone come across D related issues that are peculiar to one or the other architecture or brand?
>
> I once changed an Athlon-based machine to a Celeron-based. If I remember dhrystone benchmarks correctly, the drop in ALU performance was significant.

but shouldn't Celeron compared to Sempron, and not Athlon? O_o