On Apr 30, 2004, at 12:58 PM, Daniel Macks wrote:
On Fri, Apr 30, 2004 at 10:52:36AM -0700, Darkwing wrote:Hey all. I have been using Fink for about 9 months and enjoying it, but
it produces some really really slow executables. I decided to start
fresh, and I started editing the .info files to add SetCFLAGS: -fast
-mcpu=7450 and also -fPIC on libraries. This made a HUGE difference
especially in load times.
According to what I've read, position-independent code is the default (and maybe only?) mode supported by PPC/Darwin, so -fPIC may be a no-op. But I'm not a gcc expert.
Right. -fPIC is always used in Mac OS X and Darwin (see 'man gcc'), so this makes no difference. I do not believe that the -fast switch really helps in regards to loading time. It surely speeds up applications which are computing intensive. However, some applications do not like the aggressive optimization done. They might run, but produce wrong numerically results. Therefore, it is dangerous to apply these settings blindly.
I believe something else happened when you started fresh: all executables are now pre-bound. This speeds up the loading of applications quite tremendously, but has nothing to do with compiler settings. The problem is that if library A is not pre-bound, any executable depending directly or indirectly on A is not pre-bound, too. Thus if library A is used by many applications and it is now pre-bound, the loading of all these executables is speeded up.
Cheers,
Remi--------------------------------------------------------------------- Q: How many kinds of physicists are there? A: Three. Those who can count and those who can't.
********************************************************************* Remigius K. Mommsen e-mail: [EMAIL PROTECTED] University of California, Irvine URL: http://cern.ch/mommsen c/o SLAC voice: ++1 (650) 926-3595 2575 Sand Hill Road #35 fax: ++1 (650) 926-3882 Menlo Park, CA 94025, US home: ++1 (650) 233-9041 *********************************************************************
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users
