QDOS gcc made easy (docker stylee)

Anything QL Software or Programming Related.
User avatar
XorA
Super Gold Card
Posts: 593
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

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


User avatar
NormanDunbar
Super Gold Card
Posts: 735
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QDOS gcc made easy (docker stylee)

Postby 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?
If at first you don't succeed, don't take up skydiving!
If you think your job is pointless, remember, there's someone in Germany who fits indicators to BMWs.
User avatar
dilwyn
Mr QL
Posts: 1489
Joined: Wed Dec 01, 2010 10:39 pm
Location: Wales
Contact:

Re: QDOS gcc made easy (docker stylee)

Postby dilwyn » Sat Jul 21, 2018 4:34 pm

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/


Dilwyn
All things QL: see www.dilwyn.me.uk
User avatar
pjw
Super Gold Card
Posts: 528
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QDOS gcc made easy (docker stylee)

Postby 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
Be wary of large West-Coast corporations bearing gifts!
- Ancient Trojan proverb
User avatar
XorA
Super Gold Card
Posts: 593
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: QDOS gcc made easy (docker stylee)

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


User avatar
pjw
Super Gold Card
Posts: 528
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: QDOS gcc made easy (docker stylee)

Postby 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
Be wary of large West-Coast corporations bearing gifts!
- Ancient Trojan proverb

Who is online

Users browsing this forum: Google [Bot] and 9 guests