
SBASIC & C++
- vanpeebles
- Commissario Pebbli
- Posts: 2852
- Joined: Sat Nov 20, 2010 7:13 pm
- Location: North East UK
-
- Font of All Knowledge
- Posts: 4684
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: SBASIC & C++
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.
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.
Regards,
Derek
Derek
-
- Aurora
- Posts: 889
- Joined: Mon Nov 24, 2014 2:03 pm
Re: SBASIC & C++
Thanks everyone. Now I am beginning to see where I am going.
Where can I buy CPort, LibCport & c68 please?
Steve.
Where can I buy CPort, LibCport & c68 please?
Steve.
Re: SBASIC & C++
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
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
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
-
- Aurora
- Posts: 889
- Joined: Mon Nov 24, 2014 2:03 pm
Re: SBASIC & C++
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.
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.
-
- Aurora
- Posts: 889
- Joined: Mon Nov 24, 2014 2:03 pm
Re: SBASIC & C++
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.
Steve.
-
- Aurora
- Posts: 889
- Joined: Mon Nov 24, 2014 2:03 pm
Re: SBASIC & C++
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.
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++
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
--
All things QL - https://dilwyn.theqlforum.com
All things QL - https://dilwyn.theqlforum.com
-
- Font of All Knowledge
- Posts: 4684
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: SBASIC & C++
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.
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.
Regards,
Derek
Derek
-
- Aurora
- Posts: 889
- Joined: Mon Nov 24, 2014 2:03 pm
Re: SBASIC & C++
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.
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.