[fpc-pascal] Cross compiling from win32 to linux

2006-04-11 Thread Adrian Veith

I try to crosscompile in win32 to linux with fpc 2.1.1.
I use the options: -Sd -B -Tlinux

The compiler compiles all the sources without problem, but the linker 
reports an errror: unrecognised emulation mode: elf_i386

this is because fpc calls ld instead of i386-linux-ld
when i rename i386-linux-ld to ld, the linker reports another error: 
cannot find -lpthread


where is my fault ?

thanks,

Adrian Veith.

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


Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Dimitris Apostolou
> > when a real number overflows the program halts with EInvalidOp error.
> > How can I make the program behave the more standard way, where the
> > variable gets the value "inf" and execution continues normally? This 
is
> > vital for many tasks, like fractal computation.
> 
> You can use try..except..end block and switch -Sd when compile:

Thank you very much, this solves the problem though I think that 
performance-wise it is not optimal. What is the reason for freepascal 
being not IEEE-spec compliant? Is it backwards compatibility?

> Or you may take a look IEEE specification if it is necessary to create
> your
> own big float support for larger precision with fractals.

It seems really weird that there is no such unit in the standard 
freepascal distribution. It would be a huge task for me to create one 
with C-like speed. 

Dimitris

-- 
Analog-/ISDN-Nutzer sparen mit GMX SmartSurfer bis zu 70%!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] ERROR in webpage "Link don't work"

2006-04-11 Thread AgeWare None

ftp://ftp.freepascal.org/pub/fpc/dist/Source/short/compsrc.zip

i realy need this to see how you can start a compiler, your new version's 
are to complex to a 16 year old boy, that not uses English every day (only 
in Development)


how can i get this file.
ftp://ftp.freepascal.org/pub/fpc/dist/Source/short/compsrc.zip

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


Re: [fpc-pascal] Cross compiling from win32 to linux

2006-04-11 Thread Peter Vreman
> I try to crosscompile in win32 to linux with fpc 2.1.1.
> I use the options: -Sd -B -Tlinux
>
> The compiler compiles all the sources without problem, but the linker
> reports an errror: unrecognised emulation mode: elf_i386
> this is because fpc calls ld instead of i386-linux-ld
> when i rename i386-linux-ld to ld, the linker reports another error:
> cannot find -lpthread
>
> where is my fault ?

Use -XPi386-linux- to let fpc use i386-linux-ld for the linking. You also
need to have a copy of all .so files needed for the linking. Put them in a
directory and pass -Fl





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


Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Florian Klaempfl
Dimitris Apostolou wrote:
>>> when a real number overflows the program halts with EInvalidOp error.
>>> How can I make the program behave the more standard way, where the
>>> variable gets the value "inf" and execution continues normally? This 
> is
>>> vital for many tasks, like fractal computation.
>> You can use try..except..end block and switch -Sd when compile:
> 
> Thank you very much, this solves the problem though I think that 
> performance-wise it is not optimal. What is the reason for freepascal 
> being not IEEE-spec compliant? I

It is:
http://community.freepascal.org:1/docs-html/rtl/math/setexceptionmask.html

You can turn off floating point exceptions using this procedure.

> Is it backwards compatibility?
> 
>> Or you may take a look IEEE specification if it is necessary to create
>> your
>> own big float support for larger precision with fractals.
> 
> It seems really weird that there is no such unit in the standard 
> freepascal distribution. It would be a huge task for me to create one 
> with C-like speed. 
> 
> Dimitris
> 

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


Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Sasa Zeman
> Thank you very much, this solves the problem though I think that
> performance-wise it is not optimal. What is the reason for freepascal
> being not IEEE-spec compliant? Is it backwards compatibility?

FPC is IEEE-spec compliant, since all computer follow up floating point
standard. It should follow  up to 80 bits for double-extended precision.
Note that IEEE specification is recently under revision.

> It seems really weird that there is no such unit in the standard
> freepascal distribution. It would be a huge task for me to create one
> with C-like speed.

That is specific task. Take a look Alex Fihman BigFloat unit, for example:
http://www.db-access.com/

Sasa


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


Re: [fpc-pascal] ERROR in webpage 'Link don't work'

2006-04-11 Thread Tomas Hajny
AgeWare None wrote:
> ftp://ftp.freepascal.org/pub/fpc/dist/Source/short/compsrc.zip
>
> i realy need this to see how you can start a compiler, your new version's
> are to complex to a 16 year old boy, that not uses English every day (only
> in Development)
>
> how can i get this file.

If I understand it correctly, you're looking for sources for old FPC
versions (especially for the compiler). You can find sources for all
released versions starting with 1.0.0 under
ftp://ftp.freepascal.org/pub/fpc/olddist/, and in addition to this, one of
the early alpha versions can be found in
ftp://ftp.freepascal.org/pub/fpc/attic/.

Tomas

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


[fpc-pascal] Division by Zero - not raised exception

2006-04-11 Thread Sasa Zeman
FPC 2.0.2 do not rasie exception on integer/floats division by Zero, which
is suitable for calucaltion I currently developing. Instead, division return
infinity:

writeln(1/0) -> +inf
writeln(1.0/0) -> +inf

With excluding zero exception from SetExceptionMask(), it dows not turn on
the exception (unless there is another way). In any event, division by zero
should raise exception by default. Perhaps it is solved in some latest
release?

Sasa


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


Re: [fpc-pascal] Division by Zero - not raised exception

2006-04-11 Thread Peter Vreman
> FPC 2.0.2 do not rasie exception on integer/floats division by Zero, which
> is suitable for calucaltion I currently developing. Instead, division
> return
> infinity:
>
> writeln(1/0) -> +inf
> writeln(1.0/0) -> +inf
>
> With excluding zero exception from SetExceptionMask(), it dows not turn on
> the exception (unless there is another way). In any event, division by
> zero
> should raise exception by default. Perhaps it is solved in some latest
> release?

Already fixed.



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