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

[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 (u

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 unders

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 fol

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 computatio

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

[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/So

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..exc

[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