-----Original Message----- From: vikas <pvssvikas@xxxxxxxxx> To: tprince@xxxxxxxxxxxx Date: Thu, 12 Jun 2008 20:46:39 +0530 Subject: Re: CMT option with gcc Hi, So do you mean by this (below clarification), gcc can look and optimize only if I use OpenMP calls ? or it is intelligent enough even to look into posix multi threading calls and generate optimized code for multi core systems ? ___________________ Posix threads have been in use with gcc from the beginning, but that's a library separate from gcc. gcc testsuite has included some pthread cases, since before gomp was introduced. Your original post seemed to be asking about recent features added to gcc for multi-thread support, and OpenMP is the big one. Given that gomp for the most popular targets is built on pthreads, you could certainly use direct pthread on the same targets. Increasing recognition has been given lately to the difficulty of adapting pthread or Windows threaded programs, such as were advocated 5 years ago, to take advantage of multiple cores. Tim Prince