mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-11 20:03:28 +00:00
Estimated hours taken: 0:10 Notes on compiling Mercury on MacOS 10.3 README.MacOS: New version of tar seems to work fine. Mercury compiles using gcc 3.4.
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
This file documents the port of Mercury to PowerPC Macs running MacOS X,
|
|
i.e. the "powerpc-apple-darwin" configuration.
|
|
|
|
The version of tar in /usr/bin/tar on MacOS (10.1) doesn't work properly --
|
|
it truncates long path names. Make sure you use GNU tar, which is available
|
|
in /sw/bin/gtar, when unpacking the Mercury source or binary distributions.
|
|
(Also, make sure to use GNU tar if/when *building* such distributions!)
|
|
The version of tar that comes with MacOS 10.3.3 doesn't have this problem.
|
|
|
|
Apple's version of gcc includes support for precompiled headers.
|
|
Unfortunately this support seems to be somewhat buggy, causing it
|
|
to sometimes crash with mysterious errors when building Mercury.
|
|
Furthermore, for the kinds of C code that the Mercury compiler generates,
|
|
it results in a very big slow-down, rather than any speedup.
|
|
Fortunately this can be disabled by using the --traditional-cpp option.
|
|
The Mercury configure script should enable this option automatically
|
|
if it is needed.
|
|
|
|
The configure script will by default choose grade reg.gc.
|
|
You can get better performance by using the hlc.gc grade.
|
|
The fast.gc and asm_fast.gc grades are not supported on PowerPC.
|
|
|
|
The following features are not yet supported on MacOS:
|
|
- shared libraries
|
|
- interactive queries in mdb
|
|
- the `--split-c-files' option to mmc
|
|
|
|
The latest version of the compiler (as at 19 May 2004) doesn't compile
|
|
with gcc 2.95.2 on MacOS 10.3.3, however it does with gcc 3.4.0.
|