[fpc-pascal] Re: Strange issue with threads
I am trying to write a multi-core processor simulator . I want 256 of them run as simultaneous threads. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Strange-issue-with-threads-tp2823464p4728565.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Strange issue with threads
Thanks, this definitely helps at least the reason why it is breaking. I am not sure how to get around it though. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Strange-issue-with-threads-tp2823464p4728549.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Strange issue with threads
On 08/23/11 22:46, rzbhatti wrote: > I followed the bug report > http://bugs.freepascal.org/view.php?id=13798 > and it says that it is resolved and closed. > > I am using fpc 2.4.4 on Windows XP. Like Luca Olivetti I am trying to create > 256 threads, but it chocks at 121 saying : Euhm ? You are one of the authors of linux' console-tools or so ? You know, that little 'daemon that does nothing' but spawns 64 processes, just to be sure. If you are not: why do you need 255 threads ??? Werner,- -- http://werner.yellowcouch.org/ signature.asc Description: OpenPGP digital signature ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Strange issue with threads
Al 23/08/11 22:46, En/na rzbhatti ha escrit: > I followed the bug report > http://bugs.freepascal.org/view.php?id=13798 > and it says that it is resolved and closed. > > I am using fpc 2.4.4 on Windows XP. Like Luca Olivetti I am trying to create > 256 threads, but it chocks at 121 saying : > > An unhandled exception occurred at $0041099C : > EThread : Failed to create new thread, code:8 > > I could not find the details of the actual resolution of this bug. Please > help... The bug is actually solved: now you see an exception when a thread cannot be created (before the bug was solved you couldn't know if the thread was successfully created or not). As per the solution to the maximum number of threads, you can look here: http://stackoverflow.com/questions/481900/whats-the-maximum-number-of-threads-in-windows-server-2003 it seems the limit is due to the available memory and the stack used by each thread. Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Strange issue with threads
I followed the bug report http://bugs.freepascal.org/view.php?id=13798 and it says that it is resolved and closed. I am using fpc 2.4.4 on Windows XP. Like Luca Olivetti I am trying to create 256 threads, but it chocks at 121 saying : An unhandled exception occurred at $0041099C : EThread : Failed to create new thread, code:8 I could not find the details of the actual resolution of this bug. Please help... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Strange-issue-with-threads-tp2823464p4728208.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] make install
Hi, For developers that use FPC sources from SVN, like me, I ask: 1. There are some advantage to use 'make install' to compile FPC? Which? 2. There are some advantage to install (make install) in a directory different of the sources? Which? Thanks, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC i386 and x86_64 using the same source
On 23 Aug 2011, at 08:46, Graeme Geldenhuys wrote: > I just searched all my PDF docs for FPC, and couldn't find a single > reference to 'crossinstall' anywhere. :-( The FPC documentation does not document building FPC itself, that is what the buildfaq is for (although apparently it doesn't mention this particular option). Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC i386 and x86_64 using the same source
On Mon, Aug 22, 2011 at 9:04 PM, Den Jean wrote: > On Monday 22 August 2011 23:24:29 Jonas Maebe wrote: >> 3. Install everything to the same prefix. Add CROSSINSTALL=1 to the "make >> install" line for which you do not want to install the utilities (e.g., if >> you want the default compiler to be the i386 one, add CROSSINSTALL=1 when >> installing the 64 bit compiler) > these options like crosszipinstall, crossinstall, ... are probably documented > in a dozen places, albeit not visible enough for my blind eyes. > Wouldn't it be nice if they showed up in the BuildFaq > http://www.stack.nl/~marcov/buildfaq.pdf On Tue, Aug 23, 2011 at 3:46 AM, Graeme Geldenhuys wrote: > On 23/08/2011, Den Jean wrote: >> these options like crosszipinstall, crossinstall, ... are probably >> documented in a dozen places, albeit not visible enough for my blind eyes. > > +1 > These settings seem very confusing, and definitely hard to find in any > documentation. > > I just searched all my PDF docs for FPC, and couldn't find a single > reference to 'crossinstall' anywhere. :-( x2 Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC i386 and x86_64 using the same source
On Mon, Aug 22, 2011 at 6:24 PM, Jonas Maebe wrote: > > On 22 Aug 2011, at 23:08, Marcos Douglas wrote: >> So, I understood right, is not supported. >> I not need these utilities and I do not know if they all are important >> or who uses them, etc. > > Some of them are used by the makefiles, some by the compiler and some by the > user. So, them are very important. >> But if, one day, I will use some utility, I shoud compile it to use >> because I never know if it is 32 or 64bit. I'm right? > > It doesn't matter whether it is 32 or 64 bit, it will do exactly the > same (except for "fpc", which will call ppcx64 if it was compiled > for 64 bit, and ppc386 if it was compiled for 32 bit). Of course it matters! 64 bit doesn't works in OS 32 bit. That is my problem. I'm configuring a HD external with my all environment. > 3. Install everything to the same prefix. Add CROSSINSTALL=1 > to the "make install" line for which you do *not* want to install the > utilities (e.g., if you want the default compiler to be the i386 one, > add CROSSINSTALL=1 when installing the 64 bit compiler) Hm... OK, I will try. Looks like that is I want. But which magic "CROSSINSTALL=1" does? Do you have a link where I can study more about it? Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Division by Zero
Am 23.08.2011 09:16, schrieb Andreas Schneider: This code prints on the screen "+Inf", but I think it should be "NaN". Is this a bug or a special case in computer arithmetic? http://en.wikipedia.org/wiki/Division_by_zero#In_computer_arithmetic Oh, thank you. I should not read only the german part of wikipedia. Shame on me. Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Division by Zero
At Tuesday, 23.08.2011 on 8:57 Michael Fuchs wrote: > Hello, > >WriteLn(FloatToStr(100 / 0)); > > This code prints on the screen "+Inf", but I think it should be "NaN". > Is this a bug or a special case in computer arithmetic? http://en.wikipedia.org/wiki/Division_by_zero#In_computer_arithmetic -- Best Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal