[fpc-pascal]FPDoc reference manual?

2003-01-24 Thread Preben Mikael Bohn
Hi all, I have just tried to compile FPDoc, and it went fine except that I had to change the makefile to add a few more include-dirs than were in it as default. Anyway, I am now looking at the reference manual located at http://www.freepascal.org/cgi-bin/viewcvs.cgi/*checkout*/projects/fpdoc/doc/fp

Re: [fpc-pascal]FPDoc reference manual?

2003-01-24 Thread Preben Mikael Bohn
Hi Michael > The needed packages are in the docs/packages repository in CVS. > But I can send a .pdf version if you want. That would be great! :-) Best regards Preben -- Don't take life too seriously. You'll never get out of it alive. ___ fpc-pasca

Re: [fpc-pascal]FPC vs. GPC (was:FPC 1.0.6 and open arrays)

2003-01-28 Thread Preben Mikael Bohn
> I suppose you have to pay that FPC is a Pascal->BIN compiler, whereas GPC > is a Pascal->C compiler... > (also explaining why FPC supports less platforms, because the GCC guys are > doing the job ;-)) I'm quite sure that GPC is *not* a Pascal->C compiler, however it does use the GCC-backend to

Re: [fpc-pascal]FPC vs. GPC (was:FPC 1.0.6 and open arrays)

2003-01-28 Thread Preben Mikael Bohn
> Can FPC and GCC object files be linked together? It seems so... :-) Best regards Preben -- Don't take life too seriously. You'll never get out of it alive. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/

Re: [fpc-pascal]FPC vs. GPC

2003-01-28 Thread Preben Mikael Bohn
>> I'm quite sure that GPC is *not* a Pascal->C compiler, however it does use >> the GCC-backend to some extend, > That is true. I thought so. :-) > If you search a Pascal to C converter, have a look at p2c. I must admit that I prefer ptoc instead, don't remember the URL, though... Best regards

[fpc-pascal]Performance testing of FPC programs?

2003-02-07 Thread Preben Mikael Bohn
Hi all, I have a relatively large FPC program that I suspect have a few bottlenecks (regarding processing speed). Are there any ways I can test how long time the program spends in the different procedures/functions? Best regards Preben ___ fpc-pascal m

[fpc-pascal]Error: The object arg1 has no VMT

2003-02-09 Thread Preben Mikael Bohn
Dear all, I get the error "Error: The object TINTERPOLATION has no VMT" when trying to compile one of my programs with the option -Sd (delphi mode), but not in normal mode. The error is listed but apparently not documented in http://www.freepascal.org/docs-html/user/node15.html#SECTION00151

Re: [fpc-pascal]Error: The object arg1 has no VMT

2003-02-09 Thread Preben Mikael Bohn
Preben Mikael Bohn mumbled something about: > Dear all, I get the error "Error: The object TINTERPOLATION has no VMT" when > trying to compile one of my programs with the option -Sd (delphi mode), but > not in normal mode. Maybe I should add that when I compile the program wi

Re: [fpc-pascal]MySQL code...

2003-02-10 Thread Preben Mikael Bohn
Hi Gene, have a look at http://www.freepascal.org/packages/mysql.html It should be included in your FPC, I think... Best regards Preben Gene Buckle mumbled something about: > Can someone point me to some example code that shows access to MySQL via > FPC? > > tnx. > > g. > > > >

[fpc-pascal]Matrix library for FPC

2003-03-18 Thread Preben Mikael Bohn
I guess this is slightly off-topic as it is not directly fpc-specific, but here it goes anyway: Are there any good matrix/vector-libraries for FPC (should be compilable with fpc)? It is essential that it can handle special matrices (doubly-bordered block-diagonal, sparse, etc) and that these matri

[fpc-pascal]blockread/write?

2003-03-19 Thread Preben Mikael Bohn
Hi all, I'm trying to use blockread/write to speed up a very inefficient unit I wrote some time ago. >From the documentation ( http://www.freepascal.org/docs-html/ref/refsu75.html#x159-16500013.3 ) it does not seem that I can be sure that "Count" records are read using blockread. Since my data shou

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Preben Mikael Bohn
Anton Tichawa wrote: > There are several other things too in this old procedure, that might still > cause errors or need optimization. If you want, I'll write a small procedure > that does the same, andor rewrite your procedure for comparison. That'd be > for God's Sake, I don't need no money or

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Preben Mikael Bohn
Anton Tichawa wrote: > Well, safety is still important. You should use the returned count in your > procedure to be on the safe soide. The end might come sooner than expected. Right now I terminate the program if all data can not be read in one go and I have not have any problems with it. However

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Preben Mikael Bohn
Ivan Montes wrote: > blockread( f, buffer[ integer index starting at 0 ], desired_bytes_to_read, > actual_bytes_readed ); > > if you don't want to redefine the type of "buffer" you can type-cast it when > calling blockread > i.e: pByte( buffer ) [ index ] OK, thanks, I'll try that. > anyway I do

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Preben Mikael Bohn
Anton Tichawa wrote: > Please post the data declarations (e. g. var Count: Integer; const > MAX_BUFFER_SIZE = .. etc.). Normally, an index starts from 0 upwards, e. g. > if you had: It starts at 1, but that really shouldn't matter that much. If you really want the other stuff I can give you what

Re: [fpc-pascal]How to edit free pascal file *.pp in xemacs?

2003-03-26 Thread Preben Mikael Bohn
milimeter wrote: > Can you tell me how to use xemacs to edit a free pascal file *.pp? And I > hope it can identify all free pascal's syntax hightlight. I use delphi.el for emacs (use google to find it). Best regards Preben ___ fpc-pascal maillist

[fpc-pascal]Retrieving memory size?

2003-03-27 Thread Preben Mikael Bohn
Dear all, I am trying to retrieve the memory size. As maxavail and memavail only gives the current available heap size (grows dynamically with the need) I can not use these functions for this purpose. Are there any ways to retrieve it in a cross-platform way? Best regards Preben ___

Re: [fpc-pascal]Retrieving memory size?

2003-03-27 Thread Preben Mikael Bohn
Marco van de Voort wrote: > What memory size? Physical, virtual, both, physical-kernel? Sorry, I meant physical. > There is no way yet, the only way would be to create a unit and implement > them on all platforms. OK. I guess I'll just have to live with this... Best regards Preben -- In poli

[fpc-pascal]Profiling and classes

2003-03-30 Thread Preben Mikael Bohn
Hi all, I am trying to write a basic object-oriented matrix library, but have run into a problem. I expected my OO routines to be somewhat slower than my equivalent non-OO routines, which was also the case (the non-OO routines uses 10 sec for a 500x500 matrix inversion, while the OO routines uses

Re: [fpc-pascal]Profiling and classes

2003-03-30 Thread Preben Mikael Bohn
Peter Vreman wrote: > Which compiler did you use? Which OO model did you use? > If the answers are 1.0.6 and class Right answer... :-) > then you should try the 1.1 compiler and > add {$implicitexceptions off} OK, I'll try the 1.1. What does the {$implicitexceptions off} do (I guess it turns im

Re: [fpc-pascal]Profiling and classes

2003-03-30 Thread Preben Mikael Bohn
Peter Vreman wrote: >> I expected my OO routines to be somewhat slower than my equivalent non-OO >> routines, which was also the case (the non-OO routines uses 10 sec for a >> 500x500 matrix inversion, while the OO routines uses 110 secs (!) for the >> same). > > Which compiler did you use? Which

[fpc-pascal]Asynchronous serial routine (win32+Linux)

2003-11-10 Thread Preben Mikael Bohn
Hi all, I need routines for accessing the serial ports under both Linux and Win32 (both in the same packeage would be preferable, but I can do a wrapper if that's needed). I tried http://www.ararat.cz/synapse/ but this seems to be blocking access only, and I need asynchronous access. Can anyone r

Re: [fpc-pascal]Random generator

2003-12-06 Thread Preben Mikael Bohn
jordi wrote: Hi, I'm looking for a good random generator. Randomize and Random does not seem safe enougth. Can someone help? Hi Jordi, in what sense is it not safe enough? If you really need something "safe", only a hardware solution is probably good enough. Best regards Preben _

[fpc-pascal]Sleep() routine?

2003-12-31 Thread Preben Mikael Bohn
Hi all, are there any cross-platform (or at least linux/win32) sleep() routines available in free-pascal? Best regards Preben ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal