Search found 2251 matches

by NormanDunbar
Wed Apr 21, 2021 2:47 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 77123

Re: QL / PASCAL

Just a quickie, the document on building the Cross Compiler had a minor error in it at the end where the QL Units were copied to the installation folder required. The end of the command was missing, not good. A few other typose and speling erors have been fixed. ;) Version 1.1 is online now. As ever...
by NormanDunbar
Sun Apr 18, 2021 7:16 am
Forum: Software & Programming
Topic: Pascal Crosscompiler Advice
Replies: 20
Views: 4606

Re: Pascal Crosscompiler Advice

mk79 wrote:At last! Somebody who actually listens to me :-D
I did promise to try it out! ;) Works perfectly. Thanks for the hint.

Cheers,
Norm.
by NormanDunbar
Sun Apr 18, 2021 7:14 am
Forum: Software & Programming
Topic: Pascal Crosscompiler Advice
Replies: 20
Views: 4606

Re: Pascal Crosscompiler Advice

Chain-Q wrote:If any of the above doesn't work how I described, that's a bug, please report and it will be fixed.
It's all fine, thanks. Derek needed to upgrade QPC to version 5.x to execute files created with the -WQqhdr option.

Cheers,
Norm.
by NormanDunbar
Sat Apr 17, 2021 7:58 pm
Forum: Software & Programming
Topic: Pascal Crosscompiler Advice
Replies: 20
Views: 4606

Re: Pascal Crosscompiler Advice

I noticed I was using QPC2 4.05, so I upgrade to 5.00 and the hello.exe file executes from QPC2 DOS drive. Excellent. I am 99% certaing that QPC 5 was when this style of header was able to be executed. I've been using XTcc trailers until recently, when Marcel gave me a telling off -- after all the ...
by NormanDunbar
Sat Apr 17, 2021 3:31 pm
Forum: Software & Programming
Topic: Pascal Crosscompiler Advice
Replies: 20
Views: 4606

Re: Pascal Crosscompiler Advice

Hi Derek, I compiled the hello.pp file with: fpc-ql -Tsinclairql -WQqhdr hello.pp Which produced the output described and using Q-emulator, was abloe to execute the file 'hello.exe' But the file 'hello.exe' would not execute in QPC2 or SMSQmulator, SMSQ/E still thinking it was a Type 0 or data file....
by NormanDunbar
Fri Apr 16, 2021 5:56 pm
Forum: Software & Programming
Topic: Pascal Crosscompiler Advice
Replies: 20
Views: 4606

Re: Pascal Crosscompiler Advice

Hi Derek, Here's something that might help, from Chain-Q: Another hint: Debugging config file and path issues is quite easy using the -vv compiler argument. This will write a file called "fpcdebug.txt" into the current directory, which contains human readable verbose information about the ...
by NormanDunbar
Thu Apr 15, 2021 8:44 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 77123

Re: QL / PASCAL

I want to keep this style for the system unit, and the raw headers. For the user-visible qdos unit in qlunits, we can add overloaded functions, which would be more Pascal-ish. function mt_inf(system_vars: ppbyte; ver_ascii: plongint): Tjobid; would be equivalent with this: function mt_inf(out syste...
by NormanDunbar
Thu Apr 15, 2021 5:48 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 77123

Re: QL / PASCAL

Sorry Norman, but I'm pretty sure this patch is wrong, but having said this, I'm not saying the original version in there is entirely correct. But there I copied the mt_inf() function signature from QL-GCC libc actually. Hmmm. From your example, I see your point, I think. ;) Happy that the ASCII ve...
by NormanDunbar
Thu Apr 15, 2021 5:43 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 77123

Re: QL / PASCAL

Chain-Q wrote: I added a link to that page into: https://wiki.freepascal.org/Sinclair_QL#Building
Thanks.

Cheers,
Norm.
by NormanDunbar
Thu Apr 15, 2021 5:42 pm
Forum: Software & Programming
Topic: QL / PASCAL
Replies: 303
Views: 77123

Re: QL / PASCAL

mk79 wrote:The forum is more intelligent than we give it credit :-D
AI? :D :D :D