This indeed recudes the C file, now 41721775 bytes.
Still > 2Gb compiler memory required; I'll have a look at other solutions.

Apparently, each function keeps still making generic code loops:
adding a line like
    GenericTypes => [D]
still reduces C size, even if no untyped arguments are used.

I've tried to exclude ALL generic types with
    GenericTypes => []
But this does not help either.

Similarly I have tried to give each array a named dimension, in order to
avoid generation of loop code.
Apparently, loops are generated, even though this is explicitly
discouraged by, for example:
pp_def('disnan',
    Pars => 'double din(1);int [o] disnanqretval10z(1);',
    GenericTypes => [D],
    Code => '( $P(disnanqretval10z) )[0] = disnan_ ( $P(din)); ',
);


Christian Soeller wrote:
> Not having looked at the code, one way to reduce C/XS file size is to 
> explicitly type the PP arguments (e.g. float or double) so that 
> typeloops are reduced. This generally makes sense with libraries that 
> support only certain types anyway.
> 
> Christian
> 
> On 3/06/2009, at 8:33 AM, Jan Hoogenraad wrote:
> 
>> Thanks a lot for the feedback.
>> I've included your comments in the test code.
>>
>> The new test program can be found in lapack_090602.tgz, under
>> https://sourceforge.net/tracker/?func=detail&atid=350612&aid=2774886&group_id=612
>>  
>>
>>
>> Can you help me out on the how to reduce the huge memory hunger (>>  2Gb
>> swap space needed, then I have terminated the process) for compilation ?
>> The intermediate C file grows to 43 Mb
>> 42644492  lapack_link_pm_e10d.c
>>
>> At this moment, the users have to manually pick out the routines they
>> actually are going to use.
>>
>> Chris Marshall wrote:
>>> Jan Hoogenraad wrote:
>>>> Victory.
>>>
>>> Congratulations and happy Pldpp-ing!
>>>
>>> Some suggestions below for the PDL testing...
>>>
>>>
>>
>>
>> _______________________________________________
>> Perldl mailing list
>> [email protected]
>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> 
> -- 
> Christian Soeller PhD   Dept. of Physiology  +64 9 3737599 x82770
> University of Auckland  Auckland, New Zealand  fax +64 9 3737499
> 
> 




_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to