Anything QL Software or Programming Related.
XorA
Site Admin
Posts: 1609 Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK
Post
by XorA » Sat Jul 21, 2018 2:44 pm
XorA wrote: Compile qdos zip for linux and zip the exe. Qdos zip recognises the xtcc field and adds the header.
Or I guess seeing as this place is filled with QL experts, add XTCC field support to SMSQ/e and Minerva
For those that don't know the size needed from the header is stored at the end of gcc/c68 executables as the bytes XTCC ?? ?? ?? ?? where the ?? are the size in bytes. So the last 8 bytes of the exe actually contain the necessary info.
NormanDunbar
Forum Moderator
Posts: 2459 Joined: Tue Dec 14, 2010 9:04 am
Location: Buckie, Scotland
Contact:
Post
by NormanDunbar » Sat Jul 21, 2018 3:56 pm
Here's one I prepared earlier:
Code: Select all
00003fa0 04 04 04 04 4e 18 1a 18 04 04 98 08 06 01 08 00 |....N...........|
00003fb0 58 54 63 63 00 00 03 70 |XTcc...p|
The last 8 bytes, in QL big endian format, shows that this application needs a data space of $0370 bytes (880 decimal), however, it appears that the CC part of XTCC is in lower case.
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 .
pjw
QL Wafer Drive
Posts: 1607 Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:
Post
by pjw » Sat Jul 21, 2018 7:09 pm
XorA wrote: Compile qdos zip for linux and zip the exe. Qdos zip recognises the xtcc field and adds the header.
If the file is compiled to a foreign file system, zipping it wont help. You are on the right track with SEXEC in a QL environment.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
XorA
Site Admin
Posts: 1609 Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK
Post
by XorA » Sat Jul 21, 2018 7:16 pm
pjw wrote: XorA wrote: Compile qdos zip for linux and zip the exe. Qdos zip recognises the xtcc field and adds the header.
If the file is compiled to a foreign file system, zipping it wont help. You are on the right track with SEXEC in a QL environment.
Sorry you are wrong, QDOS zip understands the XTcc field discussed earlier. And can be compiled/run easilly on Linux (and win32 too as I discovered).
pjw
QL Wafer Drive
Posts: 1607 Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:
Post
by pjw » Sun Jul 22, 2018 11:02 am
XorA wrote: pjw wrote: XorA wrote: Compile qdos zip for linux and zip the exe. Qdos zip recognises the xtcc field and adds the header.
If the file is compiled to a foreign file system, zipping it wont help. You are on the right track with SEXEC in a QL environment.
Sorry you are wrong, QDOS zip understands the XTcc field discussed earlier. And can be compiled/run easilly on Linux (and win32 too as I discovered).
Oops! Sorry. I must have missed that.
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
XorA
Site Admin
Posts: 1609 Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK
Post
by XorA » Wed Aug 18, 2021 6:30 pm
Its been a long time coming but I've done an update to this docker image.
The source of the image is available here
https://github.com/xXorAa/qdos-devel
and the final image can be pulled off Docker Hub here.
https://hub.docker.com/r/xora/qdos-devel
the image is based off Debian Buster (oldstable) 10.10 so much newer variant than my older attempt. You'll see I have compiled a few fixes for compiling ancient gcc versions on modern distros.
Always open to pull requests for new features and/or fixes.
XorA
Site Admin
Posts: 1609 Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK
Post
by XorA » Wed Aug 18, 2021 11:40 pm
Added an armv7 image for all those newer Pi's, Im guessing no-one want to compile code on a Pi0?
NormanDunbar
Forum Moderator
Posts: 2459 Joined: Tue Dec 14, 2010 9:04 am
Location: Buckie, Scotland
Contact:
Post
by NormanDunbar » Thu Aug 19, 2021 8:05 am
You can put me down as one of thise not willing to compile on a Pi 0, yes!
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: 4656 Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK
Post
by Derek_Stewart » Fri Aug 20, 2021 9:44 am
HI,
This looks great, I will have to get my RPIs out and start using them.
How hard would a version for Linux Mint be, as this is a Ubuntu based distro.
I am a beginner with Docker, but looks fairly straight forward, just finding the time to play with it...
Regards,
Derek