Lib change leads to larger executables

Walter Bright newshound at digitalmars.com
Fri Feb 23 15:02:54 PST 2007


Frits van Bommel wrote:
> Walter Bright wrote:
>> Walter Bright wrote:
>>> Bill Baxter wrote:
>>>> I see hangs occasionally even for small programs.  Even on single 
>>>> files compiled with dmd -run.  Every time it happens if I Ctrl-C 
>>>> kill it and run the same command again, everything is fine.  
>>>> Frequency is maybe like 1 out of every 50 compiles.
>> I'd forgotten, there is a problem with optlink running on multicore 
>> machines. There's supposed to be a way to tell Windows to run an exe 
>> using only one core, but I can't think of it at the moment.
> 
> Is it a threaded application?

Yes.

>(That would explain why the error is sporadic)

Yes.

> If so, the obvious workaround would be to tell it to only use one thread.
> If not, why does multicore matter?

The way mutexes are done for multi core is different than for single 
core. I think optlink multithreads correctly only for single core machines.



More information about the Digitalmars-d mailing list