Talk About Network

Google





Mac > Mac Programmer Tools > Re: How to disa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 18 Topic 576 of 637
Post > Topic >>

Re: How to disable GCC parallel compilation of universal binaries?

by Gabriele Greco <gabrielegreco@[EMAIL PROTECTED] > Jan 19, 2007 at 01:31 PM

Clark S. Cox III wrote:

> Then just split the archs up yourself, and lipo them together:
> 
> gcc -arch ppc <common args here> -O foo.o.ppc
> gcc -arch i386 <common args here> -O foo.o.i386
> lipo -create foo.o.ppc foo.o.i386 -output foo.o

So I have to create two source trees because I pass through a configure 
script (automake/autoconf).

The only thing I would like to know if it's possible to break parallel 
compilation of GCC when you type:

g++ -o target -arch i386 -arch ppc foo.cpp

- I know I can build only an arch and then "lipo" them together, but 
this is not an option because I'll need two source trees to do that.

It seems REALLY strange that GCC implemented such a complex system to 
double his instances when you specify more than one arch and then wait 
for both to complete before linking and does not give an option to do it 
sequentially.

I'm not using -j feature of makefile, gcc compiles on two threads the 
two architectures by himself, and I think that forcing this design by 
default is quite broken also if with enough memory it may be useful.

I'd like to be able to do something like this:

g++ -o target -arch i386 -arch ppc foo.cpp -fno-parallel-compile

.... but I've not find anywhere some do***entation to obtain this
behaviour.

With 512mb I obtain the following results:

1) compilation of a SINGLE source file with double arch:

15mins

2) compilation of the SAME source file with one single arch:
90 sec

This difference is because my machine became a swap box...

Bye,
  Gabry
 




 18 Posts in Topic:
How to disable GCC parallel compilation of universal binaries?
Gabriele Greco <gabrie  2007-01-18 10:07:31 
Re: How to disable GCC parallel compilation of universal binarie
"vze35xda@[EMAIL PRO  2007-01-18 02:32:23 
Re: How to disable GCC parallel compilation of universal binarie
Gabriele Greco <gabrie  2007-01-18 17:08:08 
Re: How to disable GCC parallel compilation of universal binarie
noreply@[EMAIL PROTECTED]  2007-01-18 17:38:37 
Re: How to disable GCC parallel compilation of universal binarie
Tom Harrington <tph@[E  2007-01-18 09:44:59 
Re: How to disable GCC parallel compilation of universal binarie
"Clark S. Cox III&qu  2007-01-18 14:42:59 
Re: How to disable GCC parallel compilation of universal binarie
Gabriele Greco <gabrie  2007-01-19 13:31:32 
Re: How to disable GCC parallel compilation of universal binarie
noreply@[EMAIL PROTECTED]  2007-01-19 15:27:55 
Re: How to disable GCC parallel compilation of universal binarie
"Clark S. Cox III&qu  2007-01-19 11:51:50 
Re: How to disable GCC parallel compilation of universal binarie
noreply@[EMAIL PROTECTED]  2007-01-19 20:11:58 
Re: How to disable GCC parallel compilation of universal binarie
Michael Ash <mike@[EMA  2007-01-19 14:00:11 
Re: How to disable GCC parallel compilation of universal binarie
Gabriele Greco <gabrie  2007-01-22 13:03:15 
Re: How to disable GCC parallel compilation of universal binarie
Michael Ash <mike@[EMA  2007-01-18 06:42:02 
Re: How to disable GCC parallel compilation of universal binarie
Santa Claus <santa@[EM  2007-01-19 05:30:22 
Re: How to disable GCC parallel compilation of universal binarie
Ben Artin <macdev@[EMA  2007-01-21 03:25:13 
Re: How to disable GCC parallel compilation of universal binarie
Michael Ash <mike@[EMA  2007-01-21 05:05:25 
Re: How to disable GCC parallel compilation of universal binarie
Ben Artin <macdev@[EMA  2007-01-22 18:27:05 
Re: How to disable GCC parallel compilation of universal binarie
Michael Ash <mike@[EMA  2007-01-22 17:33:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 23:01:57 PST 2009.