[m-rev.] for review: add some unicode support to Mercury

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Jul 21 18:29:06 AEST 2006


On Fri, 21 Jul 2006, Peter Moulder wrote:

> [Interesting point about micro-optimization:
> If I do a manual, natural translation of the above to
> the natural translation to C of the above `not ( ... ; ... )' (namely
> `!((0xD800 <= x && x <= 0xDBFF) || (0xDC00 <= x && x <= 0xDFFF))')
> produces good assembly code from gcc -O2 (tried both v3.3 and v4.1): a
> subtract and then a comparison, apparently identical to the code emitted
> for `x < 0xD800 || 0xDFFF < x'.
>
> Whereas `mmc --make tst.o && objdump -S Mercury/os/tst.o' (where mmc
> --output-grade-string gives hlc.gc and mgnuc does gcc-4.1 -O2 among
> other flags) gives a fairly literal translation of the Mercury code to
> assembler.

NOTE: mmake's .s target will cause the compiler to output the assembler
for the specified Mercury module.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at csse.unimelb.edu.au
administrative address: owner-mercury-reviews at csse.unimelb.edu.au
unsubscribe: Address: mercury-reviews-request at csse.unimelb.edu.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at csse.unimelb.edu.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list