Is it possible to link libc statically with GHC? My Linux box has
been upgraded, and compiled binaries no longer work on older
systems. :-(
-optl-static should do the trick.
Cheers,
Simon
___
Glasgow-haskell-users mailing list
[EMAIL
Simon Marlow [EMAIL PROTECTED] writes:
I don't know how the Ada guys do it. Perhaps they have an alternate
set of compiled libraries with bounds-checking turned off?
Me neither, I've just heard the idea discussed, not the actual
technology.
I suppose I can do it by wrapping array accesses
Hi,
Is it possible to link libc statically with GHC? My Linux box has
been upgraded, and compiled binaries no longer work on older
systems. :-(
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
___
Glasgow-haskell
I don't know how the Ada guys do it. Perhaps they have an alternate
set of compiled libraries with bounds-checking turned off?
Me neither, I've just heard the idea discussed, not the actual
technology.
I know O'Caml does this too (-unsafe as a compiler flag gives you unsafe
array
I must have misremembered it from somewhere, perhaps confusing it with
-fliberate-case-threshold mentioned a while ago (which probably
belongs in the experimental category?)
Turing off bounds checking could be fairly useful, I think, if there
is a significant speedup to be gained. My
(PS: Am I looking in the wrong places, or are a lot of GHC options
undocumented? I seem to remember options being brandished about (turn
of array bounds checking, tuning unboxing and stuff) that I'm unable
to find documented anywhere.)
There might be one or two undocumented optimisation
Simon Marlow [EMAIL PROTECTED] writes:
-optl-static should do the trick.
That worked nicely, thanks!
(PS: Am I looking in the wrong places, or are a lot of GHC options
undocumented? I seem to remember options being brandished about (turn
of array bounds checking, tuning unboxing and stuff)
Simon Marlow [EMAIL PROTECTED] writes:
There isn't a flag to turn off array bounds checking - it would require
compiling against different libraries.
I must have misremembered it from somewhere, perhaps confusing it with
-fliberate-case-threshold mentioned a while ago (which probably
belongs
in traditional Sun javac, you get something that basically looks like:
for (int i=0; i1000; i++) {
if i outside of arr bounds, throw exception
acc += arr[i];
}
but the IBM compiler will lift this out (under certain
circumstances -- for instance, if 'acc' is not in scope