[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Announcment: CFLIB for AHCC

On 17 Jul 2013 at 9:32, Xavier Joubert wrote:
> > De: "Vincent Rivière" <vincent.riviere@freesbee.fr>
> > But none of the QED binaries I built myself (with recent tools and
> > libraries) works on TOS 1.x, due to that USERDEF stack issue in the
> > CFLib.
> Writing a small TSR program that allocate a bigger supervisor stack for TOS
> 1.x (and even EmuTOS!) should be pretty easy.
> It's been some time since I last wrote code for Atari computers, but I can
> take a look at this if some people consider this useful.
Thanks for the kind offer, but I'm not sure how you would get the OS to use a 
replacement stack.  Typically, the top of stack pointer is kept in a location 
which would vary between OS versions.  Also, I believe that the stack used by 
USERDEF code is private to the process, i.e. there is a separate one for each 
DA plus the running app (plus one for the screen manager??).

There are other reasons to increase this stack size in EmuTOS, and if that 
bypasses the CFLIB problem, so much the better.  But, as Vincent noted, 
changing this in EmuTOS would not help users of early TOS versions (and I 
suspect there are lots more of those than users of EmuTOS).  So if you're 
interested in fixing this, I think it would be better to spend your time on 
fixing CFLIB.