[Haskell-cafe] Strange type behavior in GHCi 6.4.2

Grady Lemoine grady.lemoine at gmail.com
Sat Dec 30 13:55:07 EST 2006


I tried compiling, but I got a linker error:

/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x2): undefined reference to `__stginit_ZCMain'
/usr/lib/ghc-6.4.2/libHSrts.a(Main.o): In function `main':
(.text+0x16): undefined reference to `ZCMain_main_closure'
collect2: ld returned 1 exit status

--Grady

On 12/30/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> Hello Grady,
>
> Friday, December 29, 2006, 11:00:42 PM, you wrote:
>
> > I've performed some experiments in GHCi, and it looks like even for a
>
> > get essentially the same execution times no matter which of the
> > definitions below I use
>
> you should compare ghc -O2 times, ghci is very different beast. and even
> such test don't show actual results - as i already said, ghc automatically
> inlines only small functions
>
> --
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin at gmail.com
>
>


More information about the Haskell-Cafe mailing list