This is the mail archive of the gcc@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]

Re: GCC


On Fri, 18 May 2001, Erik Mouw wrote:

> On Fri, May 18, 2001 at 08:55:05AM -0700, H. Rane wrote:
> > is the gcc capable of generating code for
> > multiprocessor computers, f.e. smp code ?
> > 
> > If not, is there any commercial linux c++ compiler
> > capable to do so ?
> 
> There is no such thing as a C or C++ compiler for generating
> multiprocessor code. You have to do the multiprocessing yourself, C or
> C++ compilers won't do that for you. Things like POSIX threads will
> help, but *you* still have to separate the program into threads.
> 
He might be thinking about parallelizing/vectorizing compilers.
GCC is neither. There are several academic projects that have
done this to various degrees of completion.

The SGI compiler accepts pragma directives to parallelize blocks
and loops. It even has an auto-parallelizer option.

Diego.


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