Anyone for Object Oriented coding on the QL?

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

Re: Anyone for Object Oriented coding on the QL?

Post by NormanDunbar »

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
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by mk79 »

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: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by NormanDunbar »

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
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
Sparrowhawk
Super Gold Card
Posts: 624
Joined: Wed Dec 15, 2010 12:33 pm
Location: @131072
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by Sparrowhawk »

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
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by mk79 »

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: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by NormanDunbar »

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
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3932
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Anyone for Object Oriented coding on the QL?

Post by Derek_Stewart »

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: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Anyone for Object Oriented coding on the QL?

Post by NormanDunbar »

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
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
Peter
QL Wafer Drive
Posts: 1953
Joined: Sat Jan 22, 2011 8:47 am

Re: Anyone for Object Oriented coding on the QL?

Post by Peter »

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: 3932
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Anyone for Object Oriented coding on the QL?

Post by Derek_Stewart »

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