Page 2 of 3

Re: QDOS gcc made easy (docker stylee)

Posted: Sat Jul 21, 2018 2:44 pm
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.

Re: QDOS gcc made easy (docker stylee)

Posted: Sat Jul 21, 2018 3:56 pm
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.

Re: QDOS gcc made easy (docker stylee)

Posted: Sat Jul 21, 2018 4:34 pm
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/

Re: QDOS gcc made easy (docker stylee)

Posted: Sat Jul 21, 2018 7:09 pm
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.

Re: QDOS gcc made easy (docker stylee)

Posted: Sat Jul 21, 2018 7:16 pm
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).

Re: QDOS gcc made easy (docker stylee)

Posted: Sun Jul 22, 2018 11:02 am
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. :)

Re: QDOS gcc made easy (docker stylee)

Posted: Wed Aug 18, 2021 6:30 pm
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.

Re: QDOS gcc made easy (docker stylee)

Posted: Wed Aug 18, 2021 11:40 pm
by XorA
Added an armv7 image for all those newer Pi's, Im guessing no-one want to compile code on a Pi0?

Re: QDOS gcc made easy (docker stylee)

Posted: Thu Aug 19, 2021 8:05 am
by NormanDunbar
You can put me down as one of thise not willing to compile on a Pi 0, yes! :D

Cheers,
Norm.

Re: QDOS gcc made easy (docker stylee)

Posted: Fri Aug 20, 2021 9:44 am
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...