SBASIC & C++

Anything QL Software or Programming Related.
User avatar
vanpeebles
Commissario Pebbli
Posts: 2821
Joined: Sat Nov 20, 2010 7:13 pm
Location: North East UK

Re: SBASIC & C++

Post by vanpeebles »

I have c-port on disk three :)


Derek_Stewart
Font of All Knowledge
Posts: 3957
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC & C++

Post 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.


Regards,

Derek
stevepoole
Super Gold Card
Posts: 714
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post by stevepoole »

Thanks everyone. Now I am beginning to see where I am going.
Where can I buy CPort, LibCport & c68 please?
Steve.


User avatar
tofro
Font of All Knowledge
Posts: 2700
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: SBASIC & C++

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
stevepoole
Super Gold Card
Posts: 714
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post 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.


stevepoole
Super Gold Card
Posts: 714
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post 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.


stevepoole
Super Gold Card
Posts: 714
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post 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.


User avatar
dilwyn
Mr QL
Posts: 2761
Joined: Wed Dec 01, 2010 10:39 pm

Re: SBASIC & C++

Post 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


Derek_Stewart
Font of All Knowledge
Posts: 3957
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC & C++

Post 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.


Regards,

Derek
stevepoole
Super Gold Card
Posts: 714
Joined: Mon Nov 24, 2014 2:03 pm

Re: SBASIC & C++

Post 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.


Post Reply