Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Precompiled Headers and gcc 3.3



On Thursday, June 26, 2003, at 7:11 PM, Nick Zitzmann wrote:

On Wednesday, June 25, 2003, at 02:16 PM, Chris Parrish wrote:

Has anyone managed to use pre-compiled headers with the Project Builder and the update to gcc? I'm assuming that it is not going to work with the standard UI and will require some sort additional build step? The compile time for my project is nearly unbearable without pre-comps!

I already tried making a quick & dirty shell script that built GCC 3.3 pre-compiled headers for Cocoa, Carbon, and their related frameworks (ApplicationServices, Foundation, etc.). But I don't think they're used at all when doing a build with PB. Running "fs_usage | grep '.gch'" does suggest that the files are being found and opened, but I'm not seeing any speed benefit... I timed building a fairly complex project with the pre-comps and without them, and there was only ~5 seconds' difference in the times. That's not much of a speed increase.

OK. If you've gone this far then let's debug this.

- Add compiler option -Winvalid-pch in OTHER_CFLAGS. GCC will emit info. about PCH validation. This will help to investigate why GCC is not using *.gch.
- In terminal use 'file' command to check file type of *.gch. What does it say?
- Where did you put .gch files ?

-Devang

It says in the GCC documentation that no special build steps are required to use pre-compiled headers.

So maybe Devang is right and we'll have to install Xcode to get the full speed benefit of GCC 3.3...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"You can't modify a constant, float upstream, win an argument with the IRS, or satisfy this compiler" - actual MPW 68K compiler error message
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Precompiled Headers and gcc 3.3 (From: Nick Zitzmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.