[futurebasic] FBtoC: 'Use precompiled header' on OS X 10.3.9

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Tue, 1 Jan 2008 03:47:16 -0500
Robert Purves asked:

> 'Use precompiled header' is the name of a checkbox in FBtoC's Settings
> dialog.
>
> Management of gcc's precompiled header optimization is something of a
> black art. For the last several preview releases, FBtoC has been
> making an invalid pch, which gcc later silently ignored.
> The performance bug was fixed in 1a126. 'Use precompiled header' gives
> a noticeable speed-up of repeated builds of the same FB project, or
> standalone source file, when tested with gcc 4.0.1 in OS X 10.4 and
> 10.5.
>
> If someone running OS X 10.3.9 (and hence gcc version 3.3) could
> report on the truth of the claim above, the FBtoC team would be
> grateful.



Robert,

Here are repeated runs of the "Edit field demo.bas" on a 500MHz G4
running 10.3.9.

Accelerated compiles with the pch indicate it is working just fine.

Ken



FBtoC: 1.0 build a126
Compiler info:
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.


FBtoC: translating project Edit field demo.bas to Edit_field_demo.c
FBtoC: translation time:   1.28 s
FBtoC: copying files
FBtoC: copy time:          0.27 s
FBtoC: creating precompiled header
FBtoC: using precompiled header
FBtoC: pch time:          13.89 s
FBtoC: compiling Edit_field_demo.c to Edit field demo.app
FBtoC: compiling runtime
FBtoC: compiling user code
FBToC: compile+link time:  9.12 s
FBtoC: total time:        24.72 s
FBtoC: launching Edit field demo.app
FBtoC: done


FBtoC: translating project Edit field demo.bas to Edit_field_demo.c
FBtoC: translation time:   2.38 s
FBtoC: copying files
FBtoC: copy time:          0.32 s
FBtoC: using precompiled header
FBtoC: compiling Edit_field_demo.c to Edit field demo.app
FBtoC: using precompiled runtime
FBtoC: compiling user code
FBToC: compile+link time:  3.21 s
FBtoC: total time:         6.09 s
FBtoC: launching Edit field demo.app
FBtoC: done


FBtoC: translating project Edit field demo.bas to Edit_field_demo.c
FBtoC: translation time:   1.19 s
FBtoC: copying files
FBtoC: copy time:          0.24 s
FBtoC: using precompiled header
FBtoC: compiling Edit_field_demo.c to Edit field demo.app
FBtoC: using precompiled runtime
FBtoC: compiling user code
FBToC: compile+link time:  2.67 s
FBtoC: total time:         4.29 s
FBtoC: launching Edit field demo.app
FBtoC: done


FBtoC: translating project Edit field demo.bas to Edit_field_demo.c
FBtoC: translation time:   1.25 s
FBtoC: copying files
FBtoC: copy time:          0.29 s
FBtoC: using precompiled header
FBtoC: compiling Edit_field_demo.c to Edit field demo.app
FBtoC: using precompiled runtime
FBtoC: compiling user code
FBToC: compile+link time:  2.69 s
FBtoC: total time:         4.44 s
FBtoC: launching Edit field demo.app
FBtoC: done


FBtoC: translating project Edit field demo.bas to Edit_field_demo.c
FBtoC: translation time:   2.55 s
FBtoC: copying files
FBtoC: copy time:          0.35 s
FBtoC: using precompiled header
FBtoC: compiling Edit_field_demo.c to Edit field demo.app
FBtoC: using precompiled runtime
FBtoC: compiling user code
FBToC: compile+link time:  3.26 s
FBtoC: total time:         6.49 s
FBtoC: launching Edit field demo.app
FBtoC: done