C68 out of memory -help

Anything QL Software or Programming Related.
User avatar
tofro
Font of All Knowledge
Posts: 2701
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: C68 out of memory -help

Post by tofro »

Derek_Stewart wrote: I thought, maybe the problem is JS Rom problem, so installed Minerva v1.98, but compiling the C68 programme would not compile till the bufp option wss increased. Strange it is not required on SMSQ/E.
I am pretty sure I don't have to use this option on any of my Minerva and SMSQ/E black box installations. Are you sure the C68 version for the tests was the same everywhere?

I do recall C68 wants to use file storage for buffers if it runs out of its allocated buffer space - That is the reason for the "-tmp ram1_" command line switch used in the initial invocation. If there's no ram disk installed on the box, that obviously won't work and might lead to the error message.

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Derek_Stewart
Font of All Knowledge
Posts: 3958
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: C68 out of memory -help

Post by Derek_Stewart »

Hi,

There is the Trump Card ram disk installed, which gives a dynamic ram disk of 600Kb or the rest of the remaing memory.

I had tried the TMP definition to ram1_ which did not work.

The only way to compile Hello Wolrd C programme is to increas the linker programme buffer to greater than 25Kb

I will try out the system with a Super Gold card and floppy drives.

So the questio is is the ram disc in the Trump Card enugh for the temporary files used in the linking process.

No problem on SMSQ/E on Q68, QPC2, SMSQmulator, where I set the TEMP and TMP to WIN1_TEMP_ by an environmental variable.
Last edited by Derek_Stewart on Tue Mar 12, 2024 3:55 pm, edited 1 time in total.


Regards,

Derek
mhanias
Brittle Membrane
Posts: 105
Joined: Mon Jul 11, 2011 10:12 pm

Re: C68 out of memory -help

Post by mhanias »

My QL rom is a greek one MG version


mhanias
Brittle Membrane
Posts: 105
Joined: Mon Jul 11, 2011 10:12 pm

Re: C68 out of memory -help

Post by mhanias »

At least for large programs the Compiler is useless?


User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: C68 out of memory -help

Post by mk79 »

Quite the contrary, you experience this because at some point in time it was optimized for large programs. This is a case of code not matching documentation anymore. The default BUFP is now 500kb, the default BUFL is 200kb, too large for your Trump Card. By specifying a smaller BUFP you lower the memory consumption to a point where it starts working again. Of course it doesn't help that the error message is hopelessly broken...


EmmBee
Trump Card
Posts: 240
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

Re: C68 out of memory -help

Post by EmmBee »

Any ideas of how to get the Hello World program to compile on Q-emuLator ?


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

Re: C68 out of memory -help

Post by NormanDunbar »

mk79 wrote:Quite the contrary, you experience this because at some point in time it was optimized for large programs. This is a case of code not matching documentation anymore.
Mystery solved. Thanks Marcel.


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
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: C68 out of memory -help

Post by mk79 »

EmmBee wrote:Any ideas of how to get the Hello World program to compile on Q-emuLator ?
Using the command line parameters poster earlier. Or simply up the RAM to 4MB Image


mhanias
Brittle Membrane
Posts: 105
Joined: Mon Jul 11, 2011 10:12 pm

Re: C68 out of memory -help

Post by mhanias »

Marcel is right. Using C68v 4.20 all work perfect There is no need of -bufp.

Michael


EmmBee
Trump Card
Posts: 240
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

Re: C68 out of memory -help

Post by EmmBee »

The latest version of C68 seems to be v4.24 released in October 1998.

Where can we get hold of this earlier version v4.20?


Post Reply