There seems to be confusion about 32bit and 64bit assembly.
Can you compile and link without optimization?

C.

Am 08.02.2011 13:33, schrieb Dušan Kolář:
> Well, it helped, but not getting output anyway:
> 
> /tmp/ghc32376_0/ghc32376_0.s: Assembler messages:
> 
> /tmp/ghc32376_0/ghc32376_0.s:35:0:
>      Error: bad register name `%rbp)'
> 
> /tmp/ghc32376_0/ghc32376_0.s:36:0:  Error: bad register name `%r15'
> 
> /tmp/ghc32376_0/ghc32376_0.s:38:0:  Error: bad register name `%r12'
> 
> /tmp/ghc32376_0/ghc32376_0.s:39:0:
>      Error: bad register name `%r13)'
> 
> /tmp/ghc32376_0/ghc32376_0.s:41:0:
>      Error: bad register name `%r12)'
> 
> /tmp/ghc32376_0/ghc32376_0.s:42:0:  Error: bad register name `%rbx'
> 
> 
> ... and many other similar lines
> 
> 
> Is my installation of gcc broken? :-O

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to