2 Nov 2005 01:54
Re: jhc vs ghc and the surprising result involving ghc generatedassembly.
John Meacham <john <at> repetae.net>
2005-11-02 00:54:04 GMT
2005-11-02 00:54:04 GMT
On Tue, Nov 01, 2005 at 05:32:29PM +0100, Florian Weimer wrote:
> * Simon Marlow:
>
> > gcc started generating this rubbish around version 3.4, if I recall
> > correctly. I've tried disabling various optimisations, but can't seem
> > to convince gcc not to generate the extra jump. You don't get this from
> > the native code generator, BTW.
>
> But the comparison is present in the C code. What do you want GCC to
> do?
in addition to the expected conditional jump, it is adding another
unconditional jump and an indirect jump to a constant.
John
--
--
John Meacham - ⑆repetae.net⑆john⑈
RSS Feed