Anyone for Object Oriented coding on the QL?

Anything QL Software or Programming Related.
User avatar
NormanDunbar
Forum Moderator
Posts: 1500
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby NormanDunbar » Mon Apr 05, 2021 8:31 pm

Derek_Stewart wrote:This was meant as a joke, seriousily I have no problem cross compilation.

No worries Derek, I still prefer native compiling to cross compiling, but at the moment, we only have the cross compiler.

The source code is in subversion because the whole Free Pascal project uses it. I prefer git too. I think they are migrating to git at some point though.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
User avatar
mk79
Aurora
Posts: 909
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby mk79 » Mon Apr 05, 2021 9:01 pm

NormanDunbar wrote:Run a small program in the QL to copy from dos1_ to ram1_, xall xtcc to set the data space, and execute the program.
Hey, I made the compiler emit QemuLator/QPC headers for a reason! And it should be the default, too, so no additional utility should be necessary to execute the files from both emulators. XTcc should only be emited using the -WQxtcc command line argument?

Anyway, it's great to see you plodding on! Looking forward to more results.

Cheers, Marcel


User avatar
NormanDunbar
Forum Moderator
Posts: 1500
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby NormanDunbar » Mon Apr 05, 2021 10:25 pm

mk79 wrote:
NormanDunbar wrote:Hey, I made the compiler emit QemuLator/QPC headers for a reason! And it should be the default, too, so no additional utility should be necessary to execute the files from both emulators. XTcc should only be emited using the -WQxtcc command line argument?

Anyway, it's great to see you plodding on! Looking forward to more results.


Yeah, I know, but I haven't used those headers yet plus, I went to all the trouble to create the xtcc utility! ;)

I do have the fpc.cfg file set up to use xtcc trailers. It means I can run the "file" command on the compiled exe and see that it's a QDOS binary. With the other option, it just says "data".

I'll keep plodding.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
User avatar
Sparrowhawk
Gold Card
Posts: 357
Joined: Wed Dec 15, 2010 12:33 pm
Location: @131072
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby Sparrowhawk » Tue Apr 06, 2021 9:11 am

NormanDunbar wrote:What did you have in mind?


Bring down this evil government and restore truth, justice, and all things good? :D

Oh, you mean re FreePascal? ;) I was just wondering how far the cross compiler had got in terms of whether it was at a point where it could be used to build useful applications. Seems like excellent progress is being made. +1


a.k.a. Jean-Yves !
User avatar
mk79
Aurora
Posts: 909
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby mk79 » Tue Apr 06, 2021 12:23 pm

NormanDunbar wrote:
mk79 wrote:
NormanDunbar wrote:Yeah, I know, but I haven't used those headers yet plus, I went to all the trouble to create the xtcc utility! ;)
So, basically, why do it the easy way if it can also be complicated :-P


User avatar
NormanDunbar
Forum Moderator
Posts: 1500
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby NormanDunbar » Tue Apr 06, 2021 4:40 pm

That sounds about right!
I promise to try the default, with the headers, later.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
Derek_Stewart
Font of All Knowledge
Posts: 2260
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

Re: Anyone for Object Oriented coding on the QL?

Postby Derek_Stewart » Thu Apr 08, 2021 2:13 pm

Hi,

Could SBASIC have rxtensions to allow OOP...

If not, I have get FPC OOP working on the QL natively.


Regards,

Derek
User avatar
NormanDunbar
Forum Moderator
Posts: 1500
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Postby NormanDunbar » Thu Apr 08, 2021 2:38 pm

Hi Derek,

probably not. But, you never know, someone out there might do it.

If/when we get FPC cross compiling itself, and its run-time library, and if the QL can host it, then we will have some objecty stuff to play with. Watch this space....


Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals - https://www.amazon.co.uk/Arduino-Softwa ... 1484257898, https://www.apress.com/gb/book/9781484257890
User avatar
Peter
QL Wafer Drive
Posts: 1255
Joined: Sat Jan 22, 2011 8:47 am

Re: Anyone for Object Oriented coding on the QL?

Postby Peter » Tue Apr 13, 2021 9:48 am

Derek_Stewart wrote:If not, I have get FPC OOP working on the QL natively.

FPC requires too much resources ever to run on a QL.
Even the Q68 would be at the limit memory-wise, and very slow.


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

Re: Anyone for Object Oriented coding on the QL?

Postby Derek_Stewart » Tue Apr 13, 2021 12:12 pm

Hi,

I have downloaded the source to Free Pascal via SVN, compiled and run example Pascal programmes, all seemed work okay.

I did the same for Lazarus, which compiled, instslled and ran okay.

I built the QL Cross Compiler which I think compiled a example from the forum.

I just have read the documentation to understand what I have done, as I followed the excellent compliation instructions.

I also have convert the SVN book "Version Control with Subversion" to epub, to understand SVN...
Last edited by Derek_Stewart on Tue Apr 13, 2021 7:26 pm, edited 1 time in total.


Regards,

Derek

Who is online

Users browsing this forum: XorA and 10 guests