[mercury-users] Is -O0 actually necessary on MacOS X with gcc-4.0?
Julien Fischer
juliensf at csse.unimelb.edu.au
Sun Aug 19 20:20:38 AEST 2007
On Sun, 19 Aug 2007, Michael Day wrote:
>> It would be good if it would be possible to isolate exactly which gcc
>> option or optimisation is incompatible with Mercury, and then just disable
>> that. Does anyone know why the -O0 is required?
>
> I built the compiler in reg.gc with -O0, but when I recompiled the compiler
> in hlc.gc I forgot to add the -O0 to the Mmake.params. However, it seemed to
> build fine, and programs built with it seem to work. Is the -O0 actually
> necessary with gcc-4.0?
For low-level C grades**, yes. For the hlc grades, (most probably) no.
Julien.
** Actually only those low-level grades that use gcc global register
variables.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list