Q_Liberator malaise

Anything QL Software or Programming Related.
User avatar
Peter
Font of All Knowledge
Posts: 2540
Joined: Sat Jan 22, 2011 8:47 am

Re: Q_Liberator malaise

Post by Peter »

RalfR wrote: Tue Sep 02, 2025 3:38 am
Peter wrote: Sun Aug 31, 2025 9:38 pmAt the moment I use only QLib programs which already have a built-in in runtime
The solution is actually quite simple: simply load "QLib_run" in the boot program, then everything will work....

:D :D :D
Not reliably, because there were different versions of "QLib_run". If the library is contained in the executable, I'm sure to have the right one.
Also I don't like to always load extensions that I may not always need, especially messy software like QLiberator.


Martin_Head
QL Wafer Drive
Posts: 1001
Joined: Tue Dec 17, 2013 1:17 pm

Re: Q_Liberator malaise

Post by Martin_Head »

pjw wrote: Tue Sep 02, 2025 3:29 pm It works a treat, Martin, at least on the program I tried it on. Thank you :)
The removal program appears to remove 114 bytes more than the size of the Qlib_run I just compiled into it. Is that normal?
Adding it again using your program restores the object to the "correct" size, ie 114 bytes less than the compiler managed.
Either way, the object program worked as it should.
I don't know offhand what the 114 bytes are. For my testing I have three programs that I have compiled twice, once with the runtimes included, and once without them.

Then after using one of my programs, I do a byte for byte comparison with it's opposite number to make sure they were exactly the same.


Martin_Head
QL Wafer Drive
Posts: 1001
Joined: Tue Dec 17, 2013 1:17 pm

Re: Q_Liberator malaise

Post by Martin_Head »

At the risk of setting myself up...

Are there any other QLib utilities that are wanted? I don't mean improvements to QLib itself, but things like the add/remove runtimes programs.

Having said that, There is mention in the user manual on the subject of the 'Trace' option, of a possible 'debugger' for QLib programs. Is there any interest in one of these? What features would be wanted?
I think it would involve a replacement runtimes module.


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

Re: Q_Liberator malaise

Post by dilwyn »

A trace and debugger module allowing single stepping (as the manual suggested) would certainly be useful.

I see the manual hints that, for example, "TRACE occupies the first reserved entry in the QLIB_USE parameter list". If such "hooks" already exist in the code to some degree, it gives you a starting point as to how to go about implementing it.


User avatar
RalfR
QL Wafer Drive
Posts: 1260
Joined: Fri Jun 15, 2018 8:58 pm

Re: Q_Liberator malaise

Post by RalfR »

Trace would be great, of course. So far, I've always helped myself by inserting a PAUSE at certain points, but that's not so great either.


7000 4E75
User avatar
NormanDunbar
Forum Moderator
Posts: 2508
Joined: Tue Dec 14, 2010 9:04 am
Location: Buckie, Scotland
Contact:

Re: Q_Liberator malaise

Post by NormanDunbar »

A tracs and or debugger? Yes please!

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