cvs commit: hugs98/src ffi.c Makefile.in connect.h hugs.c machdep.c storage.c storage.h

Alastair Reid reid@glass.cse.ogi.edu
Wed, 13 Dec 2000 01:01:54 -0800


reid        2000/12/13 01:01:54 PST

  Modified files:
    src                  Makefile.in connect.h hugs.c machdep.c 
                         storage.c storage.h 
  Added files:
    src                  ffi.c 
  Log:
  ffi.c is the code generator.  Very, very roughly, it is a translation
  of GreenCard's backend into C.
  
  Added mkFFIFilename to machdep.c
    This turns a Haskell filename like foo/bar/BBD.hs into BBD.c.
    This is where the generated code gets written.
    The file is written into the current directory because
    code generation interacts really badly with import chasing.
    There's no obvious way of turning code generation on/off on
    a module-by-module basis and it would be a really bad idea
    to try to scatter all those writes across the directory
    hierarchy (if we wrote into the same directory that the
    Haskell code was in).
  
  Added extFun and callconv fields to Name structure.
  
  Revision  Changes    Path
  1.6       +3 -2      hugs98/src/Makefile.in
  1.13      +11 -2     hugs98/src/connect.h
  1.25      +3 -2      hugs98/src/hugs.c
  1.9       +28 -2     hugs98/src/machdep.c
  1.12      +4 -2      hugs98/src/storage.c
  1.13      +4 -2      hugs98/src/storage.h