Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  generating object file for ARM (Fabien R)


----------------------------------------------------------------------

Message: 1
Date: Sun, 31 Jan 2016 21:53:22 +0100
From: Fabien R <[email protected]>
To: Haskell Beginners <[email protected]>
Subject: [Haskell-beginners] generating object file for ARM
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hello,

I would like to link my Haskell module with existing object files for 
armv7-m. I use ghc 7.4.1 on debian/amd64.

This command seems incorrect:
ghc -pgmcarm-none-eabi-gcc -pgmParm-none-eabi-cpp -pgmaarm-none-eabi-as 
-pgmlarm-none-eabi-ld  -keep-tmp-files  HaskellModule.hs

A lot of errors appeared:
[1 of 1] Compiling HaskellModule    ( HaskellModule.hs, HaskellModule.o )
/tmp/ghc13654_0/ghc13654_0.s: Assembler messages:

/tmp/ghc13654_0/ghc13654_0.s:5:0:
      Error: unrecognized symbol type ""

/tmp/ghc13654_0/ghc13654_0.s:17:0:
      Error: unrecognized symbol type ""

/tmp/ghc13654_0/ghc13654_0.s:29:0:
      Error: bad instruction `leaq -40(%rbp),%rax'

/tmp/ghc13654_0/ghc13654_0.s:30:0:
      Error: bad instruction `cmpq %r15,%rax'

Any hints ?

--
Fabien


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 92, Issue 1
****************************************

Reply via email to