Page 2 of 11
Re: SBASIC & C++
Posted: Thu Nov 27, 2014 11:30 am
by vanpeebles
I have c-port on disk three

Re: SBASIC & C++
Posted: Thu Nov 27, 2014 3:33 pm
by Derek_Stewart
Hi,
Why not try, libCPORT with C68, which is a library to be added to C68 so that Superbasic programmes can be converted to C.
I think this stands a better chance working than the DP version.
Re: SBASIC & C++
Posted: Thu Nov 27, 2014 9:07 pm
by stevepoole
Thanks everyone. Now I am beginning to see where I am going.
Where can I buy CPort, LibCport & c68 please?
Steve.
Re: SBASIC & C++
Posted: Thu Nov 27, 2014 9:14 pm
by tofro
C68 is here:
http://www.dilwyn.me.uk/c/index.html
libCPort is here
http://www.dilwyn.me.uk/c/libcport.zip
CPort used to be commercial and is not availble any more I guess, neither with nor without money
Tobias
Re: SBASIC & C++
Posted: Thu Nov 27, 2014 9:31 pm
by stevepoole
Thanks Tobias,
I will download these as soon as I get enough spare time to get into them.
For the moment, SBasic is the language i will be using to develop the TSP. Then, when all is ready I will start transcoding.
Thanks again everybody. My return to the QLForum has indeed been very rewarding.
Steve.
Re: SBASIC & C++
Posted: Fri Nov 28, 2014 2:25 am
by stevepoole
Does anyone still use the LIGHTNING MATHS EXTENSIONS? These could be useful in this current TSP project. I have them on a dud microdrive. ARE they still available anywhere?
Steve.
Re: SBASIC & C++
Posted: Fri Nov 28, 2014 6:20 am
by stevepoole
Oops, I forgot I had lightning on microdrives.
I LRESPRed LNG_MATH_EXT, and wrote a code timing routine full of trigonometry functions.
Result, with _ lngprec set to 0 or 1, 2 or 4, no difference in speed on QPC with a 15 second run.
So no way of accelerating here I'm afraid....
Pity _lngprec doesn't affect plus, minus, times or divide!
Steve.
Re: SBASIC & C++
Posted: Fri Nov 28, 2014 7:59 am
by dilwyn
I am not sure if QPC includes dedicated floating point processor support, if not, and your Windows system has FPU, you could perhaps try George Gwilt's floating point unit support package. I'm sure they're on my site somewhere to download (or perhaps George's site) but I can't remember where off hand, sorry - perhaps on
http://www.dilwyn.me.uk/asm/index.html
Re: SBASIC & C++
Posted: Fri Nov 28, 2014 8:09 am
by Derek_Stewart
Hi Dilwyn,
George's Floating Point extensions will only work with a hardware based floating point unit built into a Motorola CPU.
The Lightning Maths extensions were written to use the QL maths functions, so do not know about hardware FPU chips.
Lightning was written pre-Minerva, so I am not sure if it is worth loading into Minerva or SMSQ/E, as they both have optimised graphics and maths routines. But I can be wrong about this.
I am sure I disassembled Lightning a while ago, but maybe an unfinished project.
Re: SBASIC & C++
Posted: Sat Nov 29, 2014 10:41 am
by stevepoole
To Derek Stewart,
I downloaded libcport and c68 as you suggested.
Using dos_use flp
LRUn dos5_libcport.example1 works fine.
LRESPR dos5_libcport_runtime.exts gives not found, yet the file is shown with dir_dos5_libcport !
Mystery...
Steve.