simonmar [Tue, 19 Dec 2000 14:30:58 +0000 (14:30 +0000)]
[project @ 2000-12-19 14:30:58 by simonmar]
match changes in the Stats API
simonmar [Tue, 19 Dec 2000 14:30:39 +0000 (14:30 +0000)]
[project @ 2000-12-19 14:30:39 by simonmar]
cleanups
simonmar [Tue, 19 Dec 2000 14:30:17 +0000 (14:30 +0000)]
[project @ 2000-12-19 14:30:17 by simonmar]
- implement +RTS -t (one-line GC stats)
- clean up: use integer variables (counting ticks) rather than doubles
to store time values, and only call times() once on entry & exit
from GC instead of twice. Carry on using times() rather than
gettimeofday(), since we don't really need the increased accuracy.
simonmar [Tue, 19 Dec 2000 14:24:24 +0000 (14:24 +0000)]
[project @ 2000-12-19 14:24:24 by simonmar]
wibble
simonmar [Tue, 19 Dec 2000 14:19:24 +0000 (14:19 +0000)]
[project @ 2000-12-19 14:19:24 by simonmar]
The CafInfo on a record selector may in fact need to be
MayHaveCafRefs, if the record selector in question has a default
failure case that calls recSelError.
Thanks to the ASSERT in SRT.lhs, this was caught before it could do
any real damage.
simonmar [Tue, 19 Dec 2000 13:16:53 +0000 (13:16 +0000)]
[project @ 2000-12-19 13:16:53 by simonmar]
wibble
simonmar [Tue, 19 Dec 2000 13:13:11 +0000 (13:13 +0000)]
[project @ 2000-12-19 13:13:11 by simonmar]
remove accidentally committed wibble
sewardj [Tue, 19 Dec 2000 13:09:52 +0000 (13:09 +0000)]
[project @ 2000-12-19 13:09:52 by sewardj]
RENAME fptools/ghc/rts/Evaluator.h
to fptools/ghc/rts/Interpreter.h
sewardj [Tue, 19 Dec 2000 13:07:07 +0000 (13:07 +0000)]
[project @ 2000-12-19 13:07:07 by sewardj]
stg_ctoi_ret_R1_info et al
simonmar [Tue, 19 Dec 2000 13:06:50 +0000 (13:06 +0000)]
[project @ 2000-12-19 13:06:50 by simonmar]
- support -Rghc-timing in a bootstrapped compiler
- support -H<size> in compilers built with ghc 4.08+
simonmar [Tue, 19 Dec 2000 12:58:50 +0000 (12:58 +0000)]
[project @ 2000-12-19 12:58:50 by simonmar]
remove old comment
simonmar [Tue, 19 Dec 2000 12:55:18 +0000 (12:55 +0000)]
[project @ 2000-12-19 12:55:18 by simonmar]
- Add setHeapSize (for -H support, works with ghc-4.08+)
- Add enableGhcTiming (for -Rghc-timing, works with ghc-4.11+)
Both of these are no-ops for older compilers.
simonmar [Tue, 19 Dec 2000 12:51:58 +0000 (12:51 +0000)]
[project @ 2000-12-19 12:51:58 by simonmar]
Remove setHeapSize, we'll do this in the compiler proper now.
simonmar [Tue, 19 Dec 2000 12:50:37 +0000 (12:50 +0000)]
[project @ 2000-12-19 12:50:37 by simonmar]
new flag: +RTS -t
Prints one-line GC stats, in the style of -Rghc-timing.
sewardj [Tue, 19 Dec 2000 12:36:12 +0000 (12:36 +0000)]
[project @ 2000-12-19 12:36:12 by sewardj]
Start to get the bytecode assembler working
sewardj [Tue, 19 Dec 2000 12:34:01 +0000 (12:34 +0000)]
[project @ 2000-12-19 12:34:00 by sewardj]
tweaks to BCO infrastructure
simonmar [Tue, 19 Dec 2000 12:27:09 +0000 (12:27 +0000)]
[project @ 2000-12-19 12:27:09 by simonmar]
Makefile cleanup
sewardj [Tue, 19 Dec 2000 12:17:53 +0000 (12:17 +0000)]
[project @ 2000-12-19 12:17:53 by sewardj]
isFollowableRep BCORep = True
simonpj [Tue, 19 Dec 2000 10:50:51 +0000 (10:50 +0000)]
[project @ 2000-12-19 10:50:51 by simonpj]
Add two tests
sewardj [Tue, 19 Dec 2000 10:36:10 +0000 (10:36 +0000)]
[project @ 2000-12-19 10:36:10 by sewardj]
Abstractify the concept 'sized sequence of elements' and other cleanups
simonpj [Tue, 19 Dec 2000 08:38:20 +0000 (08:38 +0000)]
[project @ 2000-12-19 08:38:20 by simonpj]
Print tuple parens correctly in types. This has been wrong for
ages! Quite how it has survived is beyond me.
*** BACK-PATCH TO 4.08 PLEASE (I THINK) ***
simonpj [Tue, 19 Dec 2000 08:37:18 +0000 (08:37 +0000)]
[project @ 2000-12-19 08:37:18 by simonpj]
Use classesOfPreds instead of DIY
simonpj [Tue, 19 Dec 2000 08:36:34 +0000 (08:36 +0000)]
[project @ 2000-12-19 08:36:34 by simonpj]
Give the correct type and unfolding for a record selector
where the field is overloaded. This fixes a bug reported
by Victor Stolz.
*** BACK-PATCH TO 4.08 PLEASE ***
simonpj [Tue, 19 Dec 2000 08:34:40 +0000 (08:34 +0000)]
[project @ 2000-12-19 08:34:40 by simonpj]
Add comment
qrczak [Mon, 18 Dec 2000 20:42:14 +0000 (20:42 +0000)]
[project @ 2000-12-18 20:42:14 by qrczak]
Fix the order of arguments to kludgedSystem.
sewardj [Mon, 18 Dec 2000 15:44:46 +0000 (15:44 +0000)]
[project @ 2000-12-18 15:44:46 by sewardj]
invert sense of warnSelfImport guard
simonmar [Mon, 18 Dec 2000 15:18:11 +0000 (15:18 +0000)]
[project @ 2000-12-18 15:18:11 by simonmar]
Make it compile w/out -DGHCI
simonmar [Mon, 18 Dec 2000 15:17:46 +0000 (15:17 +0000)]
[project @ 2000-12-18 15:17:46 by simonmar]
fix for -S w/ -split-objs
simonpj [Mon, 18 Dec 2000 14:54:08 +0000 (14:54 +0000)]
[project @ 2000-12-18 14:54:08 by simonpj]
Fix error message
simonpj [Mon, 18 Dec 2000 14:19:35 +0000 (14:19 +0000)]
[project @ 2000-12-18 14:19:35 by simonpj]
A module's dependencies in its .hi file should not include itself!
sewardj [Mon, 18 Dec 2000 14:03:30 +0000 (14:03 +0000)]
[project @ 2000-12-18 14:03:30 by sewardj]
Change the literal pool to be an array of host-wide-Words rather than Word32s.
sewardj [Mon, 18 Dec 2000 12:43:04 +0000 (12:43 +0000)]
[project @ 2000-12-18 12:43:04 by sewardj]
Wire in the bytecode interpreter and delete the old one.
qrczak [Sat, 16 Dec 2000 17:46:57 +0000 (17:46 +0000)]
[project @ 2000-12-16 17:46:57 by qrczak]
Specialize show[EFG]Float to Float and Double.
Specialize Ratio instances to Rational.
This speeds up a show[EFG]Float call by about 50000 processor cycles.
panne [Sat, 16 Dec 2000 15:20:30 +0000 (15:20 +0000)]
[project @ 2000-12-16 15:20:30 by panne]
Merge rev. 1.18.2.2
simonmar [Sat, 16 Dec 2000 13:26:13 +0000 (13:26 +0000)]
[project @ 2000-12-16 13:26:13 by simonmar]
remove duplicate comment
simonmar [Sat, 16 Dec 2000 13:24:55 +0000 (13:24 +0000)]
[project @ 2000-12-16 13:24:55 by simonmar]
GC unused consistency checking options, and update the comments for
HscIfaceFileVersion.
chak [Sat, 16 Dec 2000 06:55:58 +0000 (06:55 +0000)]
[project @ 2000-12-16 06:55:58 by chak]
Simplified setting of build directory following a suggestion by
Jeff Lewis.
sewardj [Fri, 15 Dec 2000 17:38:45 +0000 (17:38 +0000)]
[project @ 2000-12-15 17:38:45 by sewardj]
temp hack to make contents disappear
simonmar [Fri, 15 Dec 2000 17:29:35 +0000 (17:29 +0000)]
[project @ 2000-12-15 17:29:35 by simonmar]
Hmm. Merge in stuff from before-ghci-branch that CVS refused to merge before.
sewardj [Fri, 15 Dec 2000 17:14:39 +0000 (17:14 +0000)]
[project @ 2000-12-15 17:14:38 by sewardj]
more BCO# wibbles
sewardj [Fri, 15 Dec 2000 17:09:49 +0000 (17:09 +0000)]
[project @ 2000-12-15 17:09:49 by sewardj]
Conversion of unlinked BCOs to linked BCOs.
simonmar [Fri, 15 Dec 2000 17:07:20 +0000 (17:07 +0000)]
[project @ 2000-12-15 17:07:20 by simonmar]
ASSERT that we have the right number of arguments when building a
constructor, to avoid repeats of today's extended debugging session.
simonmar [Fri, 15 Dec 2000 15:58:51 +0000 (15:58 +0000)]
[project @ 2000-12-15 15:58:51 by simonmar]
Add a special case in doDiscard for the sequence '"'. The
bootstrapped compiler can now build ghc/lib/std.
simonmar [Fri, 15 Dec 2000 14:48:09 +0000 (14:48 +0000)]
[project @ 2000-12-15 14:48:09 by simonmar]
Don't eta reduce something we just saturated. (D'oh!)
This fixes the problem which causes a bootstrapped HEAD compiler to
crash.
sewardj [Fri, 15 Dec 2000 14:47:15 +0000 (14:47 +0000)]
[project @ 2000-12-15 14:47:15 by sewardj]
add BCOzh
sewardj [Fri, 15 Dec 2000 11:59:59 +0000 (11:59 +0000)]
[project @ 2000-12-15 11:59:59 by sewardj]
nuke getBCOPtrszh
sewardj [Fri, 15 Dec 2000 11:58:35 +0000 (11:58 +0000)]
[project @ 2000-12-15 11:58:35 by sewardj]
fix arg tys for newBCO#, and delete all other BCO related primops
sewardj [Fri, 15 Dec 2000 10:37:51 +0000 (10:37 +0000)]
[project @ 2000-12-15 10:37:50 by sewardj]
Change from 3-component to 4-component representation for BCOs
sewardj [Thu, 14 Dec 2000 16:33:18 +0000 (16:33 +0000)]
[project @ 2000-12-14 16:33:18 by sewardj]
itbl renaming wibbles
sewardj [Thu, 14 Dec 2000 16:32:40 +0000 (16:32 +0000)]
[project @ 2000-12-14 16:32:40 by sewardj]
more interpreter itbl hackery
sewardj [Thu, 14 Dec 2000 16:32:21 +0000 (16:32 +0000)]
[project @ 2000-12-14 16:32:21 by sewardj]
itbl renaming wibbles
sewardj [Thu, 14 Dec 2000 15:19:48 +0000 (15:19 +0000)]
[project @ 2000-12-14 15:19:47 by sewardj]
Add info tables to do compiled->interpreted returns and vice versa.
Rename various stuff from ...Hugs... to ...Interp...
sewardj [Thu, 14 Dec 2000 14:19:56 +0000 (14:19 +0000)]
[project @ 2000-12-14 14:19:56 by sewardj]
So long, dudes! It's been Real (tm).
sewardj [Thu, 14 Dec 2000 12:52:40 +0000 (12:52 +0000)]
[project @ 2000-12-14 12:52:40 by sewardj]
Clarify itbl and linking issues for bcos, and add flag -ddump-bcos.
simonmar [Thu, 14 Dec 2000 12:33:31 +0000 (12:33 +0000)]
[project @ 2000-12-14 12:33:31 by simonmar]
don't mess with $(MKDEPENDHS)
simonmar [Thu, 14 Dec 2000 12:32:59 +0000 (12:32 +0000)]
[project @ 2000-12-14 12:32:59 by simonmar]
$(MKDEPENDHS) = $(GHC), not $(HC).
sewardj [Thu, 14 Dec 2000 10:36:49 +0000 (10:36 +0000)]
[project @ 2000-12-14 10:36:49 by sewardj]
Wrap entire file in #ifdef GHCI, to create link errors if malconfigured
sewardj [Wed, 13 Dec 2000 12:19:00 +0000 (12:19 +0000)]
[project @ 2000-12-13 12:19:00 by sewardj]
import wibbles
sewardj [Wed, 13 Dec 2000 12:18:40 +0000 (12:18 +0000)]
[project @ 2000-12-13 12:18:40 by sewardj]
BarfKind --> GhcException
simonmar [Wed, 13 Dec 2000 11:57:19 +0000 (11:57 +0000)]
[project @ 2000-12-13 11:57:19 by simonmar]
add HsForeignPtr
simonmar [Wed, 13 Dec 2000 11:50:30 +0000 (11:50 +0000)]
[project @ 2000-12-13 11:50:30 by simonmar]
Fix a broken regexp
sewardj [Wed, 13 Dec 2000 11:30:12 +0000 (11:30 +0000)]
[project @ 2000-12-13 11:30:12 by sewardj]
Track renaming of newCharArray# to newByteArray#
simonmar [Tue, 12 Dec 2000 17:21:43 +0000 (17:21 +0000)]
[project @ 2000-12-12 17:21:40 by simonmar]
Take a pass over the tests, get most things working again. Mostly
-package lang changes, and synching up of the expected output.
This was a good exercise though: I found at least two real bugs in the
process :)
simonmar [Tue, 12 Dec 2000 17:19:33 +0000 (17:19 +0000)]
[project @ 2000-12-12 17:19:33 by simonmar]
Oops! Don't forget to remove type variables from the binders of a
case alternative when converting to STG.
sewardj [Tue, 12 Dec 2000 17:16:54 +0000 (17:16 +0000)]
[project @ 2000-12-12 17:16:54 by sewardj]
track changes in ByteCodeGen.lhs
sewardj [Tue, 12 Dec 2000 17:16:28 +0000 (17:16 +0000)]
[project @ 2000-12-12 17:16:28 by sewardj]
More assembler work. Mostly done. Still need to import itbl stuff
from old interpreter. Must remember to order new hair to replaced all
I tore out today.
simonmar [Tue, 12 Dec 2000 16:21:53 +0000 (16:21 +0000)]
[project @ 2000-12-12 16:21:53 by simonmar]
error message wibble
sewardj [Tue, 12 Dec 2000 15:58:48 +0000 (15:58 +0000)]
[project @ 2000-12-12 15:58:48 by sewardj]
Get the assembler infrastructure more or less correct.
simonmar [Tue, 12 Dec 2000 15:49:20 +0000 (15:49 +0000)]
[project @ 2000-12-12 15:49:20 by simonmar]
Add missing default case from isSpecial
simonmar [Tue, 12 Dec 2000 14:48:46 +0000 (14:48 +0000)]
[project @ 2000-12-12 14:48:46 by simonmar]
-noC has been removed
simonmar [Tue, 12 Dec 2000 14:42:43 +0000 (14:42 +0000)]
[project @ 2000-12-12 14:42:43 by simonmar]
wibble: get the exception handlers round the right way
simonmar [Tue, 12 Dec 2000 14:35:09 +0000 (14:35 +0000)]
[project @ 2000-12-12 14:35:08 by simonmar]
Clean up the error handling a bit; the exception type is moved to
Panic, and a new exception for panics has been added.
simonmar [Tue, 12 Dec 2000 13:57:58 +0000 (13:57 +0000)]
[project @ 2000-12-12 13:57:58 by simonmar]
turn off recompilation checking in here
simonmar [Tue, 12 Dec 2000 13:57:40 +0000 (13:57 +0000)]
[project @ 2000-12-12 13:57:40 by simonmar]
Allow for compiling to .hc only (substitute for now-defunct -noC option)
simonmar [Tue, 12 Dec 2000 13:27:18 +0000 (13:27 +0000)]
[project @ 2000-12-12 13:27:18 by simonmar]
Make the foreign export dynamic helper function "exported", so it
doesn't get thrown away.
simonmar [Tue, 12 Dec 2000 12:19:58 +0000 (12:19 +0000)]
[project @ 2000-12-12 12:19:57 by simonmar]
- Add primops for {read,write,index}{Int,Word}{8,16,32,64}OffAddr.
This enables us to remove all the _casm_s from Int/Word.
- Replace new{Char,Int,etc.}Array# with newByteArray# (save a few primops,
at the cost of having to know the size of these types in PrelArr).
- Implement MArray/IArray support for sized types. finally.
- Move the guts of the sized types into ghc/lib/std, we'll need
them for doing more FFIish things in the Prelude.
simonmar [Tue, 12 Dec 2000 12:10:08 +0000 (12:10 +0000)]
[project @ 2000-12-12 12:10:08 by simonmar]
Treat an unhandled exception in the same way as a panic (i.e. the
`impossible' happened), to make it clear that these really are
compiler bugs.
sewardj [Tue, 12 Dec 2000 10:11:21 +0000 (10:11 +0000)]
[project @ 2000-12-12 10:11:21 by sewardj]
booting wibble
sewardj [Tue, 12 Dec 2000 10:02:57 +0000 (10:02 +0000)]
[project @ 2000-12-12 10:02:57 by sewardj]
make it compile with #define NO_READLINE
sewardj [Mon, 11 Dec 2000 18:41:01 +0000 (18:41 +0000)]
[project @ 2000-12-11 18:41:01 by sewardj]
Changes to how literals are pushed on the stack
sewardj [Mon, 11 Dec 2000 18:40:28 +0000 (18:40 +0000)]
[project @ 2000-12-11 18:40:28 by sewardj]
import wibble
sewardj [Mon, 11 Dec 2000 17:59:01 +0000 (17:59 +0000)]
[project @ 2000-12-11 17:59:01 by sewardj]
stagger ever onwards
simonmar [Mon, 11 Dec 2000 17:51:57 +0000 (17:51 +0000)]
[project @ 2000-12-11 17:51:57 by simonmar]
ANSIfy
simonmar [Mon, 11 Dec 2000 17:51:34 +0000 (17:51 +0000)]
[project @ 2000-12-11 17:51:34 by simonmar]
gc unused imports
simonmar [Mon, 11 Dec 2000 17:01:32 +0000 (17:01 +0000)]
[project @ 2000-12-11 17:01:32 by simonmar]
add foreignPtr names
simonmar [Mon, 11 Dec 2000 16:57:18 +0000 (16:57 +0000)]
[project @ 2000-12-11 16:56:47 by simonmar]
add ForeignPtr
sewardj [Mon, 11 Dec 2000 16:42:26 +0000 (16:42 +0000)]
[project @ 2000-12-11 16:42:26 by sewardj]
head -> head bootability wibbles (rm disallowed OPTIONS pragmas)
simonmar [Mon, 11 Dec 2000 16:15:03 +0000 (16:15 +0000)]
[project @ 2000-12-11 16:15:03 by simonmar]
Put back accidentally butchered Config.hs
sewardj [Mon, 11 Dec 2000 15:26:00 +0000 (15:26 +0000)]
[project @ 2000-12-11 15:26:00 by sewardj]
More driver straightening-out.
sewardj [Mon, 11 Dec 2000 14:42:21 +0000 (14:42 +0000)]
[project @ 2000-12-11 14:42:21 by sewardj]
Remove circular dependencies created by kludgedSystem.
simonmar [Mon, 11 Dec 2000 12:59:25 +0000 (12:59 +0000)]
[project @ 2000-12-11 12:59:25 by simonmar]
bco wibbles.
simonmar [Mon, 11 Dec 2000 12:56:14 +0000 (12:56 +0000)]
[project @ 2000-12-11 12:56:13 by simonmar]
New BCO primops.
sewardj [Mon, 11 Dec 2000 12:55:43 +0000 (12:55 +0000)]
[project @ 2000-12-11 12:55:43 by sewardj]
Remove the old bytecode interpreter and add the new one.
sewardj [Mon, 11 Dec 2000 12:53:44 +0000 (12:53 +0000)]
[project @ 2000-12-11 12:53:44 by sewardj]
wibble
sewardj [Mon, 11 Dec 2000 12:50:53 +0000 (12:50 +0000)]
[project @ 2000-12-11 12:50:52 by sewardj]
Are now redundant since GHCi does bytecode assembly in Haskell-land
(fptools/ghc/compiler/ghci/ByteCodeGen.lhs).
simonmar [Mon, 11 Dec 2000 12:40:24 +0000 (12:40 +0000)]
[project @ 2000-12-11 12:40:24 by simonmar]
add missing #includes.
simonmar [Mon, 11 Dec 2000 12:37:00 +0000 (12:37 +0000)]
[project @ 2000-12-11 12:36:59 by simonmar]
- update representation of BCOs
- add setHeapSize for use from within GHC
rrt [Mon, 11 Dec 2000 12:30:58 +0000 (12:30 +0000)]
[project @ 2000-12-11 12:30:58 by rrt]
Use kludgedSystem instead of system to work sanely (AFATIP) on Windows.
simonmar [Mon, 11 Dec 2000 12:15:15 +0000 (12:15 +0000)]
[project @ 2000-12-11 12:15:15 by simonmar]
allow all the dynamic -f* flags to be reversed with -fno-*
simonmar [Mon, 11 Dec 2000 11:41:08 +0000 (11:41 +0000)]
[project @ 2000-12-11 11:41:08 by simonmar]
* -fno-strictness et al. were in the wrong set of flags.
* remove static version of -fno-implicit-prelude