Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Jose on August 31, 2004, 09:51:17 PM
-
I had it print the errors then allways crash.
Now that it only crashes I think I don't have any error left on the code...
Anyway I'm using a plain A1200 with 2MB chip ram and a 20Gb hd with 3 partitions. My A4000 is in pieces waiting for a Verax fan that never seems to arrive at the post...
The docs don't mention if any fast ram is needed but I assume that could be the problem :-?
-
@Jose
Any moderately large program needs a considerable amount of memory to compile, especially if optimizing is enabled.
For instance, one of my ongoing projects when compiled with stormC4 in gcc mode can get through 40MB of memory during a full build.
-
@Karlos
Yes I know, but this was only the init part of the program. VERY small...
Besides, the VBCC docs say one should be able to compile very small code with 1MB 8-)
But they could be talking about 1MB fast ram...
-
Perhaps if they allocate MEMF_FAST rather than MEMF_PUBLIC.
A well behaved program should handle memory exhaustion cleanly, however.
I've never had vbcc crash - I had some strange warnings from it ( :-D ) but never an outright crash.
-
"I've never had vbcc crash ..."
Just use the default stack size and you'll have :-)