LoÃc Grenià on Thu, 18 Oct 2012 12:04:36 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PARI/GP compilation parameters


2012/10/18 Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>:
> On Wed, Oct 17, 2012 at 11:20:03PM -0400, Mathieu Carbou wrote:
>> Hello,
>>
>> I just tried several compilation flags on Cygwin for PARI after reading
>> the INSTALL doc:
>>
>> (1) ./Configure --static --without-gmp
>> (2) ./Configure --static --enable-tls
>> (3) ./Configure --static --enable-tls --without-gmp
>>
>> What is strange is that my scripts take a really longer time for cases
>> (2) and (3) whereas I think it would be the opposite: i.e. 1 minutes
>> instead of 2 seconds with (1).
>>
>> Is it normal ? What could create those differences ?
>
> Yes it is normal. I did not even know --enable-tls worked on cygwin.
> --enable-tls is only useful is you want to compile multi threaded
> libpari programs. --enable-tls make shared libraries a bit slower on linux
> because it defer some storage allocation at runtime.

    I've also found that the call to a subroutine seems to be slower with
  --enable-tls than without (the assembler "call" instruction seems slower).

         Thanks,

                LoÃc