www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Specifying Single or Multi threaded in DMC

reply Tristan Ward <tristan wytraven.com> writes:
I am a proud new owner of the DMC CD and am currently nutting my way 
through its use.  I'm using the comandline version rather than the IDDE. 
  The IDDE is a bit confusing to me.

In VC++ you could specify the use of either single threaded or 
multithreaded libraries in both debug and release versions.  Is that 
something you can do in DMC as well or what?

Please excuse me if this is a really dumb question, but hey, I'm new to 
this ;)

Regards,
Tristan Ward
Jan 22 2004
parent reply Tristan Ward <tristan wytraven.com> writes:
I think I just figured it out my self...

Correct me if I'm wrong;  The multi/single threaded options in the VC++ 
IDE are in reference to the VC runtime library.

If thats the case then I change my question to: Are there multi threaded 
and single threaded versions of the DMC runtime library (or is it 
statically linked only?) as well as debug and release versions...

Cmon, help a pathetic newbie out ;)

Regards,
Tristan Ward

Tristan Ward wrote:
 I am a proud new owner of the DMC CD and am currently nutting my way 
 through its use.  I'm using the comandline version rather than the IDDE. 
  The IDDE is a bit confusing to me.
 
 In VC++ you could specify the use of either single threaded or 
 multithreaded libraries in both debug and release versions.  Is that 
 something you can do in DMC as well or what?
 
 Please excuse me if this is a really dumb question, but hey, I'm new to 
 this ;)
 
 Regards,
 Tristan Ward
Jan 23 2004
parent Scott Michel <scottm cs.ucla.edu> writes:
Tristan Ward wrote:
 I think I just figured it out my self...
 
 Correct me if I'm wrong;  The multi/single threaded options in the VC++
 IDE are in reference to the VC runtime library.
 
 If thats the case then I change my question to: Are there multi threaded
 and single threaded versions of the DMC runtime library (or is it
 statically linked only?) as well as debug and release versions...
 
 Cmon, help a pathetic newbie out ;)
RTFMD! DMC's RTL is thread-safe (aka "multithreaded"). There is no "multhreaded" vs. "no thread" RTL. Just static vs. DLL versions. To be honest, there's not much of a performance penalty to a single thread program unless your program's performance is dominated by making RTL calls. -scooter
Jan 23 2004