summaryrefslogtreecommitdiff
path: root/ghc/lib/posix
Commit message (Collapse)AuthorAgeFilesLines
* [project @ 1999-11-26 16:29:09 by simonmar]simonmar1999-11-2615-3196/+0
| | | | GHC bits for new library organisation.
* [project @ 1999-10-11 09:29:12 by simonmar]simonmar1999-10-111-1/+1
| | | | use $(GHC), not $(HC)
* [project @ 1999-10-05 10:30:26 by simonmar]simonmar1999-10-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build System Cleanup -------------------- This commit is intended to clear the way for automatic RPM building. In particular, the idea is that 'make install' doesn't build anything, so you can do make install prefix=/some/tmp/prefix to install everything in /some/tmp/prefix, but leave the hardwired-in install directories the same. For scripts that depend on the install dir (currently just the GHC driver and mkdependHS), we now build two versions: <script>-inplace, which is used for running the script from the build tree, and <script>, which is the to-be-installed version. NOTE: binary distributions are now a little bit trickier to build. You *must* include the line "BIN_DIST=1" in your build.mk if you intend to make a binary distribution from the current build tree. This is because certain scripts have to be built differently, and we don't rebuild them when doing 'make binary-dist' anymore (since 'make binary-dist' just does a 'make install' with a re-targetted prefix, just like the RPM builder). Other changes - the binary-dist machinery is now all in fptools/Makefile - removed a gratuitous $(package)-$(version) level of directories from the binary distribution. - binary distributions are now placed under the package name, rather than fptools/fptools. - various other minor cleanups.
* [project @ 1999-10-05 09:02:30 by simonmar]simonmar1999-10-051-1/+1
| | | | | | Flatten out the tuple of bounds in the Array, MutableArray and ByteArray datatypes. This improves performance of heavy array manipulations quite significantly.
* [project @ 1999-08-04 17:03:20 by panne]panne1999-08-043-8/+11
| | | | Some small pedantic changes to get function prototypes right.
* [project @ 1999-07-06 16:45:31 by simonpj]simonpj1999-07-064-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All Simon's recent tuning changes. Rough summary follows: * Fix Kevin Atkinson's cant-find-instance bug. Turns out that Rename.slurpSourceRefs needs to repeatedly call getImportedInstDecls, and then go back to slurping source-refs. Comments with Rename.slurpSourceRefs. * Add a case to Simplify.mkDupableAlt for the quite-common case where there's a very simple alternative, in which case there's no point in creating a join-point binding. * Fix CoreUtils.exprOkForSpeculation so that it returns True of (==# a# b#). This lack meant that case ==# a# b# of { True -> x; False -> x } was not simplifying * Make float-out dump bindings at the top of a function argument, as at the top of a let(rec) rhs. See notes with FloatOut.floatRhs * Make the ArgOf case of mkDupableAlt generate a OneShot lambda. This gave a noticeable boost to spectral/boyer2 * Reduce the number of coerces, using worker/wrapper stuff. The main idea is in WwLib.mkWWcoerce. The gloss is that we must do the w/w split even for small non-recursive things. See notes with WorkWrap.tryWw. * This further complicated getWorkerId, so I finally bit the bullet and make the workerInfo field of the IdInfo work properly, including under substitutions. Death to getWorkerId. Kevin Glynn will be happy. * Make all lambdas over realWorldStatePrimTy into one-shot lambdas. This is a GROSS HACK. * Also make the occurrence analyser aware of one-shot lambdas. * Make various Prelude things into INLINE, so that foldr doesn't get inlined in their body, so that the caller gets the benefit of fusion. Notably in PrelArr.lhs.
* [project @ 1999-05-18 14:59:04 by simonpj]simonpj1999-05-181-1/+1
| | | | ../compiler/msg_prel
* [project @ 1999-05-11 17:05:43 by keithw]keithw1999-05-111-2/+1
| | | | Remove some comments left in by mistake.
* [project @ 1999-05-11 16:47:39 by keithw]keithw1999-05-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | (this is number 9 of 9 commits to be applied together) Usage verification changes / ticky-ticky changes: We want to verify that SingleEntry thunks are indeed entered at most once. In order to do this, -ticky / -DTICKY_TICKY turns on eager blackholing. We blackhole with new blackholes: SE_BLACKHOLE and SE_CAF_BLACKHOLE. We will enter one of these if we attempt to enter a SingleEntry thunk twice. Note that CAFs are dealt with in by codeGen, and ordinary thunks by the RTS. We also want to see how many times we enter each Updatable thunk. To this end, we have modified -ticky. When -ticky is on, we update with a permanent indirection, and arrange that when we enter a permanent indirection we count the entry and then convert the indirection to a normal indirection. This gives us a means of counting the number of thunks entered again after the first entry. Obviously this screws up profiling, and so you can't build a ticky and profiling compiler any more. Also a few other changes that didn't make it into the previous 8 commits, but form a part of this set.
* [project @ 1999-03-02 20:16:16 by sof]sof1999-03-021-3/+4
| | | | doc tweaks
* [project @ 1999-03-02 09:17:02 by simonm]simonm1999-03-021-1/+1
| | | | makeForeignObj --> mkForeignObj
* [project @ 1999-02-12 10:36:05 by simonm]simonm1999-02-121-3/+3
| | | | finalise/finalize changes.
* [project @ 1999-01-14 18:18:45 by sof]sof1999-01-147-90/+89
| | | | -syslib posix gets the Haskell 98 treatment
* [project @ 1998-12-02 13:17:09 by simonm]simonm1998-12-028-42/+65
| | | | Move 4.01 onto the main trunk.
* [project @ 1998-08-24 19:22:47 by sof]sof1998-08-247-152/+92
| | | | Moved PosixUtil marshaling funs into CString; adjusted imports; don't use lit-lits containing NULL when we've got Addr.nullAddr
* [project @ 1998-08-14 13:09:00 by sof]sof1998-08-142-6/+15
| | | | More error message updates
* [project @ 1998-08-14 13:08:18 by sof]sof1998-08-141-2/+8
| | | | trivial syserr fix
* [project @ 1998-08-14 13:07:49 by sof]sof1998-08-141-45/+36
| | | | Fd <--> Handle conversion: use new IO impl
* [project @ 1998-08-14 13:06:56 by sof]sof1998-08-142-7/+7
| | | | Better error messages
* [project @ 1998-08-11 21:42:03 by sof]sof1998-08-113-17/+7
| | | | Pick up unvectorize from Util
* [project @ 1998-08-08 17:38:42 by sof]sof1998-08-081-2/+4
| | | | | _setenv: off by one error when extending the env block. (has this code ever been used in anger?)
* [project @ 1998-08-08 00:35:16 by sof]sof1998-08-081-2/+11
| | | | | getEnvironment: embedding a global variable inside a lit-lit causes it to be read just once.
* [project @ 1998-07-02 08:49:25 by simonm]simonm1998-07-021-0/+1
| | | | need Addr import.
* [project @ 1998-05-18 10:12:48 by simonm]simonm1998-05-181-1/+0
| | | | remove stray export.
* [project @ 1998-05-16 20:03:02 by sof]sof1998-05-161-11/+33
| | | | Added comment on the vagaries of combining runProcess and lazy file I/O
* [project @ 1998-05-12 17:04:11 by sof]sof1998-05-121-3/+7
| | | | fdToHandle: use openFd
* [project @ 1998-04-30 20:01:45 by sof]sof1998-04-301-0/+3
| | | | New function: fdToInt
* [project @ 1998-04-16 12:50:41 by sof]sof1998-04-161-1/+2
| | | | syslibs: generate dependencies on Prelude modules
* [project @ 1998-03-30 08:41:32 by sof]sof1998-03-301-0/+3
| | | | include config.h
* [project @ 1998-02-25 16:02:11 by simonm]simonm1998-02-251-1/+3
| | | | remove references to hslibs, and add \$Id\$
* [project @ 1998-02-20 13:23:46 by simonm]simonm1998-02-201-1/+1
| | | | remove spurious reference to GHC.hi (probably a cut-and-paste-o).
* [project @ 1998-02-02 17:27:26 by simonm]simonm1998-02-0214-0/+3183
Library re-organisation: All libraries now live under ghc/lib, which has the following structure: ghc/lib/std -- all prelude files (libHS.a) ghc/lib/std/cbits ghc/lib/exts -- standard Hugs/GHC extensions (libHSexts.a) -- available with '-fglasgow-exts' ghc/lib/posix -- POSIX library (libHSposix.a) ghc/lib/posix/cbits -- available with '-syslib posix' ghc/lib/misc -- used to be hslibs/ghc (libHSmisc.a) ghc/lib/misc/cbits -- available with '-syslib misc' ghc/lib/concurrent -- Concurrent libraries (libHSconc.a) -- available with '-concurrent' Also, several non-standard prelude modules had their names changed to begin with 'Prel' to reduce namespace pollution. Addr ==> PrelAddr (Addr interface available in 'exts') ArrBase ==> PrelArr CCall ==> PrelCCall (CCall interface available in 'exts') ConcBase ==> PrelConc GHCerr ==> PrelErr Foreign ==> PrelForeign (Foreign interface available in 'exts') GHC ==> PrelGHC IOHandle ==> PrelHandle IOBase ==> PrelIOBase GHCmain ==> PrelMain STBase ==> PrelST Unsafe ==> PrelUnsafe UnsafeST ==> PrelUnsafeST