
Ok, here you have my feedback on the NEW-HOpenGL-1.01 pack (I think it would be called HOpenGL-1.02 to avoid misunderstanding... :) (1) The problem between glut.dll and glut32.dll was resolved. Now the "configure step" finds "-lglut32" rather than "-lglut", and when I run the Red Book examples (and my own examples also) I don't get bored by *foo.dll not found* anymore. [I would like to say that, when I modified aclocal.m4 to make this happens before (OLD-HOpenGL-1.01), I DID NOT run "autoconf". I just deleted config.cache and started the compiling process all over again... sorry for this, I think it would have worked if I've done the right thing.] (2) [not very important] Warning messages still appear during the "make step". (3) I still get the following exception when leaving (pressing ESC in the) the RedBook_HS examples: fatal error: GLUT_CBWindow_d7T5: uncaught exception (4) Now this really intrigued me: why (GHC-4.08-1 + HOpenGL-1.00) programs are significantly smaller than (GHC-5.02 + HOpenGL-1.01)? The file attached in this email (tst.hs), once compiled, has 120Kb with the previous versions of GHC+HOpenGL, but 492Kb (!) with the present versions. This is true also for the RedBook_HS examples. And, to make things worse, the new programs are also SLOWER than the old ones. I thought that migrating to GHC-5.02 would make things faster... (specially for my bitmap loader!) -- Andre

Andre W B Furtado wrote:
[...] I would like to say that, when I modified aclocal.m4 to make this happens before (OLD-HOpenGL-1.01), I DID NOT run "autoconf".
Just guess what *I* have forgotten to do before putting this release candidate onto the server. :-} But luckily enough, there was enough time to fix this stealthily...
[...] Warning messages still appear during the "make step".
As I've already mentioned, these are a consequence of the FFI design and GreenCard.
[...] fatal error: GLUT_CBWindow_d7T5: uncaught exception
No response on the FFI front about System.exitWith yet...
[ size/speed concerns ]
I didn't have a look at the generated code recently, so I've currently no idea what causes this. But you could give GHC's FFI backend a try by changing GreenCard's option "-t ghc" to "-t ffi". I'm not sure if HOpenGL's Makefiles handle all consequences of this correctly, but this should be easy to fix. Cheers, S. -- Sven Panne Fon: +49/89/99567000 Fax: +49/89/99567461 BetaResearch GmbH, Betastr. 1, D-85774 Unterfoehring mailto:Sven_Panne@BetaResearch.de http://www.betaresearch.de
participants (2)
-
Andre W B Furtado
-
Sven Panne