Page 2 of 2

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/26/magic-fields-executable-headers/comment-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. :)