> simonmar    2004/02/20 07:20:25 PST
> 
>   Modified files:        (Branch: backend-hacking-branch)
>     ghc/compiler/cmm     PprC.hs 
>   Log:
>   Tidyup, remove ToDos that are Done.
>   
>   Revision  Changes    Path
>   1.1.2.51  +65 -105   fptools/ghc/compiler/cmm/Attic/PprC.hs

Ok, the C backend now basically works.  I've compiled libraries/base and
I'm running tests now.

One important thing isn't done: to generate proper foreign calls in the
C backend we need to know some extra info about the argument and result
types; namely ptr-vs-non-ptr and signed-vs-unsigned.  If we don't have
this information, then the C compiler emits warnings because we're
calling functions at the wrong type (although the generated code still
works as long as the C conventions for ptr/non-ptr and signed/unsigned
are the same, which they are on x86).  

It shouldn't be hard to add hints to foreign calls, like C--, to fix
this.

And I've just noticed that there are a couple of test failures, so I'm
off to investigate those.

Cheers,
        Simon
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to