1. 12 Apr, 2007 6 commits
  2. 11 Apr, 2007 3 commits
  3. 12 Apr, 2007 2 commits
  4. 11 Apr, 2007 5 commits
    • Simon Marlow's avatar
    • Ian Lynagh's avatar
      Remove redundant import · 045dd8b9
      Ian Lynagh authored
      045dd8b9
    • Simon Marlow's avatar
      Rationalise GhcMode, HscTarget and GhcLink · 3c22606b
      Simon Marlow authored
      This patch cleans up the GHC API, and adds some functionality: we can
      now compile to object code inside GHCi.
      
      Previously we had:
      
        data GhcMode
          = BatchCompile
          | Interactive
          | OneShot
          | JustTypecheck
          | MkDepend
        
        data HscTarget
          = HscC
          | HscAsm
          | HscJava
          | HscInterpreted
          | HscNothing
      
      There was redundancy here; if GhcMode is Interactive, then only
      HscInterpreted makes sense, and JustTypecheck required HscNothing.
      Now we have:
      
        data GhcMode
          = CompManager       -- ^ --make, GHCi, etc.
          | OneShot           -- ^ ghc -c Foo.hs
          | MkDepend          -- ^ ghc -M, see Finder for why we need this
      
      and HscTarget remains as before.
      
      Previously GhcLink looked like this:
      
        data GhcLink = NoLink | StaticLink
      
      Now we have:
      
        data GhcLink = NoLink | LinkBinary | LinkInMemory
      
      The idea being that you can have an HscTarget of HscAsm (for example)
      and still link in memory.
      
      There are two new flags:
      
        -fobject-code selects object code as the target (selects
                      either -fasm or -fvia-C, whichever is the default)
                      This can be usd with ':set' in GHCi, or on the command line.
      
        -fbyte-code   sets byte-code as the target.  Only works in GHCi.
                      One day maybe this could save the byte code in a file
                      when used outside GHCi.
      
        (names chosen for consistency with -fno-code).
      
      Changes to the GHC API: newSession no longer takes the GhcMode
      argument.  The GhcMode defaults to CompManager, which is usually what
      you want.  To do JustTypecheck now, just set hscTarget to HscNothing.
      3c22606b
    • Ian Lynagh's avatar
      d55443e6
    • Ian Lynagh's avatar
      Build library Setup.hs's with -Wall · 6c30dba4
      Ian Lynagh authored
      6c30dba4
  5. 10 Apr, 2007 4 commits
  6. 09 Apr, 2007 2 commits
  7. 06 Apr, 2007 2 commits
  8. 13 Nov, 2006 1 commit
    • Aaron Tomb's avatar
      Fix external core syntax (though not full compilation) · de777ba4
      Aaron Tomb authored
      This patch updates the External Core creator, pretty-printer, and parser to
      agree on a concrete syntax for External Core, including the constructs
      required by the change to System FC. Code to create valid ASTs from External
      Core files will come later, as will bits for renaming, typechecking, and
      desugaring.
      de777ba4
  9. 06 Apr, 2007 1 commit
  10. 16 Mar, 2007 2 commits
  11. 10 Mar, 2007 1 commit
  12. 08 Mar, 2007 1 commit
  13. 01 Apr, 2007 1 commit
    • red5_2@hotmail.com's avatar
      fix adjustor generation on ia64 (test case ffi009) · b321da7d
      red5_2@hotmail.com authored
      Some fixes to adjustor functions.  The 8-byte address returned by the 
      allocator is adjusted to be aligned to 16-byte boundaries.  Fixed a typo 
      in inserting an immediate address into an instruction.
      
      This fixes the calls to 5-argument and 6-argument functions in ffi009.  
      Some functions still break.  I suspect it's related to passing arguments on 
      the stack.
      b321da7d
  14. 27 Mar, 2007 1 commit
  15. 04 Apr, 2007 7 commits
  16. 03 Apr, 2007 1 commit