Page 2 of 3

Re: Anyone for Object Oriented coding on the QL?

Posted: Mon Apr 05, 2021 8:31 pm
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.

Re: Anyone for Object Oriented coding on the QL?

Posted: Mon Apr 05, 2021 9:01 pm
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

Re: Anyone for Object Oriented coding on the QL?

Posted: Mon Apr 05, 2021 10:25 pm
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.

Re: Anyone for Object Oriented coding on the QL?

Posted: Tue Apr 06, 2021 9:11 am
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

Re: Anyone for Object Oriented coding on the QL?

Posted: Tue Apr 06, 2021 12:23 pm
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

Re: Anyone for Object Oriented coding on the QL?

Posted: Tue Apr 06, 2021 4:40 pm
by NormanDunbar
That sounds about right!
I promise to try the default, with the headers, later.

Cheers,
Norm.

Re: Anyone for Object Oriented coding on the QL?

Posted: Thu Apr 08, 2021 2:13 pm
by Derek_Stewart
Hi,

Could SBASIC have rxtensions to allow OOP...

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

Re: Anyone for Object Oriented coding on the QL?

Posted: Thu Apr 08, 2021 2:38 pm
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.

Re: Anyone for Object Oriented coding on the QL?

Posted: Tue Apr 13, 2021 9:48 am
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.

Re: Anyone for Object Oriented coding on the QL?

Posted: Tue Apr 13, 2021 12:12 pm
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...