[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] USERDEF stack size
Jo Even Skarstein wrote:
This particular problem must be fixed in CF-Lib. Instead of putting the
arrays on the stack, they should be Malloc-ed.
The arrays are currently allocated on the stack inside the GemLib (not
CF-Lib), for example inside v_gtext().
An alternative would be to use alloca(), to allocate a buffer on the
stack using the exact size. The EmuTOS AES stack is ridiculously small
in EmuTOS, less than 2 Kb. If we assume, for example, there are 1200
bytes free v_gtext() could only display safely string shorter than 600
characters.
So malloc() seems to be the only safe solution...
--
Vincent Rivière