Hurrah! Simon Peyton-Jones' fix works!
Many thanks for the quick response
George Russell
George:
I know what the problem is now. Thanks for the report.
It's a little wierd. We're getting a binding
x :: forall a. Word#
x = /\ a -> int2Word( 0 )
floated up to the top level. But you can't have a top-level
binding of unlifted type.
The predicate that spots such thin
What's the object of this exercise?
sizeof(sizeof(foo)) is equal to sizeof(size_t),
which again is some value of type size_t.
If we're talking ISO/ANSI C (a reasonable assumption
by now, I think), size_t is guaranteed to at least be
unsigned. Converting an unsigned value to a
(signed int) if
Sven fixed this GC bug a week or two back.
Your programs compile ok with the current CVS compiler,
(which we are desperately trying to get settled so we can
release it).
If you can try the current version, I think you'll find
it will work.
Simon
> -Original Message-
> From: Andy Gill
My questions were:
> What is the output of:
>
>#include
>int main(void) { printf("%d\n", sizeof(sizeof(int))); return 0; }
>
> Is this portable at all?
There was only *one* reply yet (via personal email), and, alas, it
was not correct... >:-)
Quoting Harbison/Steele's "C: A Referenc
When compiling on linux, using ghc 4.03, I get the following
compile time error:
bash% make
ghc -syslib exts -O -c DataXML.hs -o DataXML.o
ghc: module version changed to 1; reason: no old .hi file
ghc -syslib exts -O -c ClassParsing.hs -o ClassParsing.o
ghc: module version changed to 1; reason: n
What is the output of:
#include
int main(void) { printf("%d\n", sizeof(sizeof(int))); return 0; }
Is this portable at all? %-} Whoever can answer these questions
immediately should have a look GHC's RTS, especially the calculation
of bit masks, shifts, ...
Cheers,
Sven
--
Sven Pa
And another one: Is callFun.s still needed? Almost everything is
#ifdef-ed out and the Alpha assembler does not like the directive
.file "callfun.S"
Cheers,
Sven
--
Sven PanneTel.: +49/89/2178-2235
LMU, Institut fuer Informatik FA
At the moment I'm trying to compile ghc-4.04 with ghc-2.10 on Alpha.
Apart from some easily fixed issues I have the following question:
In fptools/ghc/rts/RtsAPI.c the functions rts_getInt, rts_getInt32,
rts_getWord, and rts_getWord32 return an (unsigned) int (= 4 bytes
on Alpha), but pointers and