optlink on multicore machines

Daniel Keep daniel.keep.lists at gmail.com
Tue Jun 30 01:48:09 PDT 2009


Walter Bright wrote:
> After acquiring a mysterious virus that would randomly hang my Windows
> box at 100% CPU but all the processes showed 0 runtime, it was time to
> reinstall Windows. Since installing Windows is an all-day affair, I
> decided it was time to upgrade my 7 year old hardware to multicore.
> 
> Once I was up and running, I decided to run the D test suite. I
> immediately discovered that optlink simply doesn't work on multicore.
> The multithreading code in it was developed for a single core machine,
> and multicore is different.
> 
> I was able to fix it by running the command:
> 
>    imagecfg -a 0x1 \dm\bin\link.exe
> 
> imagecfg.exe is downloadable from the internet. This command patches the
> executable so it only runs on one core.

See, we TOLD YOU!

:D

Incidentally, I thought someone had already done that and it didn't
work...  if it DOES work, then brillo-bananas; I'm off to patch me some
OPTLINK.



More information about the Digitalmars-d mailing list