Fwd: Unable to compile ghc-8.2.2 with ghc-8.4.3

Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < sam.halliday@gmail.com>:
[...] It would make a lot of sense for the "unregistered" sources to be made available as an optional download alongside the source code, if haskell.org were open to that possibility.
IIRC, the generated C code is *not* platform-independent, at least that is what I remember from ancient times. Perhaps I'm wrong and/or this has changed, but if this is really the case, you would need an additional download per target platform. Cheers, S.

Am 31.08.2018 um 11:57 schrieb Sven Panne:
Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < sam.halliday@gmail.com>:
[...] It would make a lot of sense for the "unregistered" sources to be made available as an optional download
Note that the term is "unregisterized" which refers to putting certain global variables into registers; you can't do that in C code. Cheers Ben (another one)

Am Fr., 31. Aug. 2018 um 18:52 Uhr schrieb Ben Franksen < ben.franksen@online.de>:
Am 31.08.2018 um 11:57 schrieb Sven Panne:
Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < sam.halliday@gmail.com>:
[...] It would make a lot of sense for the "unregistered" sources to be made available as an optional download
Note that the term is "unregisterized" which refers to putting certain global variables into registers; you can't do that in C code.
That's only correct for standard C, for GCC there is https://gcc.gnu.org/onlinedocs/gcc/Global-Register-Variables.html. IIRC this is exactly how old unregistered builds worked. I am not even sure if the unregistered builds ever worked *without* GCC, perhaps there was some CPP magic, but I can't remember....

I don't think ghc ever used gcc's version of this; it used the Evil Mangler
to do it.
On Fri, Aug 31, 2018 at 2:59 PM Sven Panne
Am Fr., 31. Aug. 2018 um 18:52 Uhr schrieb Ben Franksen < ben.franksen@online.de>:
Am 31.08.2018 um 11:57 schrieb Sven Panne:
Am Fr., 31. Aug. 2018 um 11:11 Uhr schrieb Sam Halliday < sam.halliday@gmail.com>:
[...] It would make a lot of sense for the "unregistered" sources to be made available as an optional download
Note that the term is "unregisterized" which refers to putting certain global variables into registers; you can't do that in C code.
That's only correct for standard C, for GCC there is https://gcc.gnu.org/onlinedocs/gcc/Global-Register-Variables.html. IIRC this is exactly how old unregistered builds worked. I am not even sure if the unregistered builds ever worked *without* GCC, perhaps there was some CPP magic, but I can't remember.... _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
-- brandon s allbery kf8nh allbery.b@gmail.com

Am Fr., 31. Aug. 2018 um 21:17 Uhr schrieb Brandon Allbery < allbery.b@gmail.com>:
I don't think ghc ever used gcc's version of this; it used the Evil Mangler to do it.
Well, I actually *do* think it used GCC's global variables: I fixed GHC in the late 90's to make it work on HP-UX, and I'm quite sure that this involved fiddling around with header files, finding suitable registers, describing stack layout, fixing alignment problems etc. Alas, I don't have any unregistered build for GHC 0.29 (?) on HP-UX 10 at hand anymore. :-D Perhaps one of the Simons remembers the details...
participants (3)
-
Ben Franksen
-
Brandon Allbery
-
Sven Panne