Michael Banzon <michael@banzon.dk> wrote:
> >>Er der nogen der har erfaring med opdatering af den GCC der
> >>følger med XCode?? Kan man bare køre en 'make install' på en
> >>nyere og så regne med at XCode stadigvæk spiller?? :-/
> >
> >
> > Det tror jeg ikke lige umiddelbart. Apples GCC implementering indholder
> > nogle udvidelser specifikke for Apple.
>
> Ved du hvilke??
Næh, men du kan jo selv kigge!
sakset fra
<file:///Developer/ADC%20Reference%20Library/releasenotes/DeveloperTools
/GCC3.html>:
How to build the compiler from source
The source code for the Apple GCC 3.3 compiler is available for download
using anonymous CVS from
:pserver:anonymous@anoncvs.opensource.apple.com:/cvs/root using password
anonymous and module gcc3. See the compiler documentation for more
information about how to obtain specific compiler versions using CVS.
The opensource.apple.com repository may also contain compilers that are
more up-to-date (and less stable) than the compiler in this release.
The file README.Apple, in the top level source directory, explains how
to build the compiler.
Ways in which Apple GCC 3.3 differs from gcc on other platforms
• Xcode Tools uses STABS as its debugging format, and does not support
DWARF.
• Apple GCC 3.3 generates optimized STABS by default. That is, it emits
debug symbols only for symbols that are actually used. The "generic" FSF
GCC emits debug information for all symbols, regardless of whether they
are used. The -gfull command line option directs the Apple GCC compiler
to turn off STABS optimization and to emit debug information for all
symbols, as the FSF GCC compiler does.
• Apple GCC 3.3 removes empty BINCL/EINCL STABS. This is helpful in
improving GDB startup time. This optimization will be available in FSF
GCC 3.4.
• Apple GCC's implementation of Altivec uses the older Motorola syntax,
as described in the Altivec PIM. The newer GNU syntax is not yet
supported. (Programs using the GNU syntax may compile without messages,
yet produce unexpected results at runtime.)
• Apple's version of GCC 3.3 supports precompiled headers (PCH). In the
"generic" FSF GCC, precompiled headers will not appear until version
3.4.
• Apple's version of GCC 3.3 supports Objective-C++. In addition,
Apple's Objective-C implementation contains numerous fixes and
improvements, most notably exception and synchronization support (see
above).
• Apple's version of libstdc++ supports STL debugging mode (see above).
This feature is not yet present in the FSF version.
• The -fast option is specific to Apple's version of GCC 3.3. Some of
the optimizations controlled by -fast are not yet present in the FSF
version of GCC.
> Det kunne være at man kunne flette de to versioner
> sammen igen
muligvis!
--
Michael Tysk-Andersen
tysk-andersen.dk
Rønne