I tried Free Pascal (FPC Version: 2.4.2).
It is a compiler.
It can make DLLs.
I guess that means, theoretically, it could be called by thinBasic.
-----------------------------------------------------------------------------------------------
(I didn't see there was a forum for it at thinBasic, until I looked to upload this post.)
I haven't the vaguest notion about SDKs.
http://www.thinbasic.com/community/showthread.php?8349-Free-Pascal-2.2.0-releasedI definitely need to have a serious run with it and see if I can make a thinBasic SDK for Free Pascal in order to be able to develop thinBasic module under Free Pascal.
If it happens, it would be nice.
I think if I knew how to make a DLL and call it from thinBasic, I would be incentivized.
For me, I don't want PowerBasic, and, I don't want C.
I would like Fortran or Free Pascal - if I knew how to make an SDK, and it was easy, I would try to do one or both myself.
-----------------------------------------------------------------------------------------------
website:
http://www.freepascal.org/
documentation:
There are 7 documents in PDF files.
(The Run-Time Library (RTL) units reference manual, is 1739 pages.)
http://www.freepascal.org/docs.var
IDE = Lazurus
http://www.lazarus.freepascal.org/
Free Pascal + Lazurus --> installer (76.2 MB)
http://sourceforge.net/projects/lazarus/files/
Test:
(compiled to RAM, and run from IDE)
' code ---------------------------------------------------------------------------------------------------------------------- program test; uses sysutils,dateutils; const // n equals one billion n=1000000000; var i:longint; f:extended; t1,t2: tdatetime; begin t1:=now; // Calculate the square roots. for i:=1 to n do begin f:=sqrt(i); end; // Write the statistics. t2:=now; f:= millisecondsbetween(t2,t1)/1000; writeln('time to calculate the square roots of 1 to ',n,':'); writeln('elapsed seconds = ',f); writeln; // Write some square root values. for i:=1 to 9 do begin writeln(i,' ',sqrt(i)); end; readln; end. ' output -------------------------------------------------------------------------------------------------------------------- time to calculate the square roots of 1 to 1000000000: elapsed seconds = 2.1450000000000000E+0001 1 1.0000000000000000E+0000 2 1.4142135623730950E+0000 3 1.7320508075688773E+0000 4 2.0000000000000000E+0000 5 2.2360679774997897E+0000 6 2.4494897427831781E+0000 7 2.6457513110645906E+0000 8 2.8284271247461901E+0000 9 3.0000000000000000E+0000
Bookmarks