1. 08 Sep, 2003 4 commits
    • simonmar's avatar
      [project @ 2003-09-08 13:01:16 by simonmar] · 90656575
      simonmar authored
      mdo needs layout treatment too.
      90656575
    • simonmar's avatar
      [project @ 2003-09-08 11:53:14 by simonmar] · 05aa4a18
      simonmar authored
      Remove old lexer; replaced by Lexer.x.
      05aa4a18
    • simonmar's avatar
      [project @ 2003-09-08 11:52:24 by simonmar] · 9541ef34
      simonmar authored
      Replace the handwritten lexer with one generated by Alex.
      
      YOU NOW NEED ALEX (v 2.0 or later) TO COMPILE GHC FROM CVS.
      
      Highlights:
      
        - Faster than the previous lexer (about 10% of total parse time,
          depending on the token mix).
      
        - More correct than the previous lexer: a couple of minor wibbles
          in the syntax were fixed.
      
        - Completely accurate source spans for each token are now collected.
          This information isn't used yet, but it will be used to give much
          more accurate error messages in the future.
      
        - SrcLoc now contains a column field as well as a line number,
          although this is currently ignored when printing out SrcLocs.
      
        - StringBuffer is now based on a ByteArray# rather than a Ptr, which
          means that StringBuffers are now garbage collected.  Previously
          StringBuffers were hardly ever released, so a GHCi session would
          leak space as more source files were loaded in.
      
        - Code size reduction: Lexer.x is about the same size as the old
          Lex.lhs, but StringBuffer.lhs is significantly shorter and
          simpler.  Sadly I wasn't able to get rid of parser/Ctypes.hs
          (yet).
      9541ef34
    • simonmar's avatar
      [project @ 2003-09-08 09:05:42 by simonmar] · 74fce831
      simonmar authored
      Update comp.lang.functional FAQ URL.
      74fce831
  2. 05 Sep, 2003 1 commit
  3. 04 Sep, 2003 5 commits
    • simonmar's avatar
      [project @ 2003-09-04 13:58:12 by simonmar] · 398ccea3
      simonmar authored
      - Document -e
      
      - Rearrange the documentation on "modes".  I've moved the list of
        modes from the beginning of "Using GHC", to a subsection a little
        later, and the sections describing make-mode and batch-mode are now
        further subsections of this.
      
      - Add missing modes to the list: -M and --mk-dll.
      398ccea3
    • simonmar's avatar
      [project @ 2003-09-04 11:08:46 by simonmar] · e98cf284
      simonmar authored
      Add a new command-line flag -e EXPR, which runs ghc in interactive
      mode and evaluates EXPR only before exiting.
      
      Also, the lexer now ignores lines beginning with "#!".  This is so
      that we can use ghc as a scripting language with Unix-style scripts
      beginning with
      
      #! /usr/local/bin/ghc -e main
      
      (well, it's not quite that simple, but I'll leave the details for the
      more enterprising hackers).
      e98cf284
    • simonmar's avatar
      [project @ 2003-09-04 09:56:16 by simonmar] · d0d9c936
      simonmar authored
      Don't bogusly use HOST instead of BUILD or TARGET in the platform defines.
      d0d9c936
    • simonmar's avatar
      [project @ 2003-09-04 09:55:28 by simonmar] · 2b7c9eee
      simonmar authored
      Flesh out the platform variables, rather than bogusly setting BUILD
      and TARGET to HOST most of the time.
      
      This doesn't give us any better cross-compiling support, but it's a
      step in the right direction.
      
      Also, I added a comment describing the proper meaning of BUILD
      vs. HOST vs. TARGET, and which one to test in various parts of the
      source tree.
      2b7c9eee
    • simonmar's avatar
      [project @ 2003-09-04 09:53:31 by simonmar] · c0d30cb3
      simonmar authored
      Uncomment AC_SUBSTs for many of the platform variables, since I'm
      guessing that this comment doesn't apply any more:
      
      dnl Cannot afford all these SUBSTs (because of braindead seds w/ 99 cmd limits)
      c0d30cb3
  4. 03 Sep, 2003 2 commits
  5. 02 Sep, 2003 3 commits
  6. 01 Sep, 2003 1 commit
  7. 29 Aug, 2003 4 commits
    • panne's avatar
      [project @ 2003-08-29 16:15:59 by panne] · bfc04eaf
      panne authored
      -fno-prune-tydecls is dead, Jim...
      bfc04eaf
    • simonmar's avatar
      [project @ 2003-08-29 16:13:48 by simonmar] · 5c0bddfb
      simonmar authored
      Oops, forgot one file in the x86_64 commit.
      5c0bddfb
    • simonmar's avatar
      [project @ 2003-08-29 16:00:25 by simonmar] · 7dc97354
      simonmar authored
      Initial x86-64 (aka amd64) support.
      
      Unregisterised it works perfectly.  Registerised, I think it's almost
      there, except that I seem to be running into the known codegen bug in
      GCC with register variables (bug #7871 in the gcc bugzilla), which
      means registerised support is basically hosed until the GCC folks
      can get their act together.
      
      We get 8 more registers on amd64, but only 2 more callee-saves
      registers.  The calling convention seems to pass args in registers by
      default, using the previously-callee-saves %rsi and %rdi as two of the
      new arg registers.
      
      I think GHCi should work, since we already have 64-bit ELF support
      thanks to Mat Chapman's work on the IA64 port.  I haven't tried GHCi,
      though.
      
      The native code generator should be a breeze, because it's so similar
      to plain x86.
      7dc97354
    • simonmar's avatar
      [project @ 2003-08-29 12:05:39 by simonmar] · f16020a8
      simonmar authored
      Remove unused references to $T_create_word
      f16020a8
  8. 28 Aug, 2003 3 commits
  9. 27 Aug, 2003 8 commits
  10. 26 Aug, 2003 3 commits
  11. 22 Aug, 2003 6 commits
    • sof's avatar
      [project @ 2003-08-22 23:04:46 by sof] · c3a1e453
      sof authored
      html stylesheet: added comments on what you need to define in order to get one page output
      c3a1e453
    • sof's avatar
      [project @ 2003-08-22 22:38:02 by sof] · 2b57ddc3
      sof authored
      rts_mainEvalIO() ~> rts_mainLazyIO()
      
      Merge to STABLE.
      2b57ddc3
    • sof's avatar
      [project @ 2003-08-22 22:24:12 by sof] · cffcb52b
      sof authored
      setupRtsFlags(): don't overwrite argv[0] with its basename:
         - argv[] may not point to writeable memory
         - System.Environment.getProgName strips off the 'dirname' portion
           anyway.
         - Not possible to get at the untransformed argv[0] from
           Haskell code, should such a need arise.
      
      Uses of prog_argv[0] within the RTS has now been replaced with prog_name,
      which is the basename of prog_argv[0].
      cffcb52b
    • sof's avatar
      [project @ 2003-08-22 16:38:51 by sof] · 3c6b9911
      sof authored
      mkHomeModLocation: basename has to be equal to module name, not just suffix
      3c6b9911
    • panne's avatar
      [project @ 2003-08-22 10:21:46 by panne] · 13ec31c0
      panne authored
      The autoconf magic for the library documentation belongs to
      libraries/, not ghc/.
      13ec31c0
    • panne's avatar
      [project @ 2003-08-22 06:29:42 by panne] · c2ae23c6
      panne authored
      OpenBSD's sh doesn't like the parentheses in "foo='(-1)'" so let's
      drop them. Thanks to Don for pointing this out.
      c2ae23c6