Belgian Amiga Club
 Home   About   News   Events   Knowledgebase   Repairs   Projects 

This article is part of the Wanderings in Amiga dev-land blog
{{icon}}

The trouble with stackoverflow is that is is an ungooglable error :-)

But lucky I found this:

http://www.amiga.org/forums/showpost.php?p=237540&postcount=14

I often see people define arrays of large size as local vars in a function, and they are unaware that this ends up in stack space.

Indeed! I tumbled into that booby trap also.
Note to self: define large data arrays as const outside any function.

It appears that GCC includes the standard C libraries libnix which defaults to V37 of Amiga libraries.
This makes it pretty hard to target kickstart 1.3 amigas as v37 was included with kickstart 2.04 ...
You can avoid this by using the -nostdlib flag but this opens a whole can of worms (no reference to __main, no reference to atexit ....)
So as a general rule: If you want to target kickstart 1.3 or lower: avoid GCC, use VBCC or SAS/C instead.

Update:
For cross-compilation with GCC, like this one , you can target kichstart 1.3: m68k-amigaos-gcc test.cpp -mcrt=nix13

Written on 14/04/2018 by Steffest


This site is proudly Amiga Compatible.

You are viewing the "Oldschool High-end Amiga" template.
(Oh yeah - tables baby! - No CSS)

You can also choose manually between the version for
Modern Browsers - High-end Amigas - Low-end Amigas - Plain text


Find us on Facebook - Contact us - Subscribe to our Newsletter