[m-dev.] diff: rl_code.c
Fergus Henderson
fjh at cs.mu.OZ.AU
Sat Dec 9 10:10:49 AEDT 2000
On 08-Dec-2000, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> +# Compilation of rl_code.c is really slow (about 26 minutes on traveller with
> +# --trace deep) at the default level of -O2, due to the C optimizer's use of
> +# quadratic algorithms on a couple of 20,000-line functions (the automatically
> +# generated index and compare routines on the bytecode type). The code in this
> +# module can't really benefit from those algorithms anyway. With -O1, the 26
> +# minutes drops to less than 26 seconds.
> +
> +MGNUCFLAGS-rl_code=-O1
`-O1' is an option to gcc, not to mgnuc, so you should use
CFLAGS-rl_code rather than MGNUCFLAGS-rl_code for that.
Currently it doesn't actually make any difference in this case,
but in general passing gcc options in MGNUCFLAGS can cause
problems because any later MGNUCFLAGS get interpreted as
gcc options rather than mgnuc options.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list