From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Novillo To: Erik Mouw Cc: "H. Rane" , gcc@gcc.gnu.org Subject: Re: GCC Date: Fri, 18 May 2001 11:20:00 -0000 Message-id: <20010518142006.B16831@tornado.cygnus.com> References: <20010518155505.27074.qmail@web10405.mail.yahoo.com> <20010518200511.B18853@arthur.ubicom.tudelft.nl> X-SW-Source: 2001-05/msg00838.html 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.