This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: CMT option with gcc



-----Original Message-----
From: vikas <pvssvikas@gmail.com>
To: tprince@computer.org
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]