Re: [fpc-pascal] fpc 32 / 64 bit / c++/ floating point question

2010-11-22 Thread Helmut Hartl

Am 21.11.10 19:02, schrieb Vinzent Höfler:

On Sun, 21 Nov 2010 18:54:13 +0100, Helmut Hartl
wrote:

Running the above program gives
1) C++ / FPC 64 Bit
   6.3846106530
   6.3846106530
2) FPC32 Bit
   6.3846106530
   6.3846111610

Is this explainable or wrong behaviour ?

First suspect candidate: the intermediate results are calculated with
the 80-bit "temporary" float of the FPU on x86-32, while this is not
the case on the 64 bit target.

Thanks for the idea - Looking a bit (one eyed) at the generated code
this seems to be the most likely reason.
I just gave up on the idea of comparing c++ / and fpc's calculations
directly.

helmut
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] make fpc

2010-11-22 Thread Jonas Maebe


On 21 Nov 2010, at 19:03, Brian Winfrey wrote:


What version should fpc display (Revision: 16393).

When I get latest and make /usr/bin/fpc is at version 2.4.2.

fpc -vut dummy.pas
...
Compiler: /usr/lib/fpc/2.4.2/ppc386
Using executable path: /usr/lib/fpc/2.4.2/
Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/
...

The output indicates that 2.4.3 directories are created and 2.4.3
compiler is used.

I run
 make clean build && make install INSTALL_PREFIX="/usr"


There are two separate things: the installed FPC versions, and the  
default FPC version. The default FPC version is determined by the  
symbolic links /usr/bin/ppc386, /usr/bin/ppcx64 etc (or /usr/local/bin/ 
ppc386 etc on non-Linux). A "make install" will add a new FPC version,  
but it does not make it the default. If you want to do that, change  
the symlinks to point to the new compiler version. The "fpc" utility  
is only a wrapper that calls through to ppc386/ppcx64/... and has no  
version itself.



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] make fpc

2010-11-22 Thread Brian Winfrey
On Mon, Nov 22, 2010 at 1:48 AM, Jonas Maebe  wrote:
>
> On 21 Nov 2010, at 19:03, Brian Winfrey wrote:
>
>> What version should fpc display (Revision: 16393).
>>
>> When I get latest and make /usr/bin/fpc is at version 2.4.2.
>>
>> fpc -vut dummy.pas
>> ...
>> Compiler: /usr/lib/fpc/2.4.2/ppc386
>> Using executable path: /usr/lib/fpc/2.4.2/
>> Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/
>> ...
>>
>> The output indicates that 2.4.3 directories are created and 2.4.3
>> compiler is used.
>>
>> I run
>>  make clean build && make install INSTALL_PREFIX="/usr"
>
> There are two separate things: the installed FPC versions, and the default
> FPC version. The default FPC version is determined by the symbolic links
> /usr/bin/ppc386, /usr/bin/ppcx64 etc (or /usr/local/bin/ppc386 etc on
> non-Linux). A "make install" will add a new FPC version, but it does not
> make it the default. If you want to do that, change the symlinks to point to
> the new compiler version. The "fpc" utility is only a wrapper that calls
> through to ppc386/ppcx64/... and has no version itself.
>
>
> Jonas
> ___
> fpc-pascal maillist  -  fpc-pas...@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>

I thought there was a sym link involved, but I mis-remembered it being
fpc.  That clears it up thanks.

Brian
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal