QDOS gcc made easy (docker stylee)

Anything QL Software or Programming Related.
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

Post by XorA »

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.


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

Re: QDOS gcc made easy (docker stylee)

Post by NormanDunbar »

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.
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: QDOS gcc made easy (docker stylee)

Post by dilwyn »

There's an article on this subject (XTcc fields and restoring executable file headers in general) on my blog from last year

https://dilwyn2.wordpress.com/2017/02/2 ... nt-page-1/


User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QDOS gcc made easy (docker stylee)

Post by pjw »

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
dont be happy. worry
- ?
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

Post by XorA »

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).


User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QDOS gcc made easy (docker stylee)

Post by pjw »

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
dont be happy. worry
- ?
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

Post by XorA »

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.


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

Post by XorA »

Added an armv7 image for all those newer Pi's, Im guessing no-one want to compile code on a Pi0?


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

Re: QDOS gcc made easy (docker stylee)

Post by NormanDunbar »

You can put me down as one of thise not willing to compile on a Pi 0, yes! :D

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

Re: QDOS gcc made easy (docker stylee)

Post by Derek_Stewart »

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