Re: FW: how and where to {-# specialize #-} ?

2003-06-26 Thread Alan Mycroft
Something similar was proposed by the gcc folk at their recent conference. The idea is that when you gcc -O4 your .c files, you get .o files containing an intermediate typed SSA form. Upon linking the program, gcc invokes a 'smart linker' which runs another pass on the whole program. This

Re: how and where to {-# specialize #-} ?

2003-06-25 Thread Duncan Coutts
On Wed, 25 Jun 2003 10:18:17 +0100 Alastair Reid [EMAIL PROTECTED] wrote: | It is sad that the usage of libraries containing polymorphic code | [...] | seems to imply runtime overheads, by preventing specialisation. I agree that it is sad. The only way around it is to ship libraries

how and where to {-# specialize #-} ?

2003-06-19 Thread Johannes Waldmann
Dear all, I am looking for some advice on where to place specialize-pragmas for ghc (to optimize speed - and heap usage) Typically I have some module A (containing polymorphic functions A.f, ..) and a module B uses this. The interesting case is when I want to specialize A.f (which is NOT