I figured out what I was doing wrong! I was putting my example.o file
(with main() in it)
first in my link command. When I put crt0.o first, and example.o
second, _GSINIT
landed in the code section!!! :-)
The sdcc manual, in section 3.1.3 says:
The file containing the main() function
.area GSINIT (CODE)
On 9/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Philipp Klaus Krause wrote:
Place another .area _CODE before the .area _GSINIT?
OK, I tried that, but it didn't make any difference, _GSINIT is still
in RAM.
But thanks for trying!
Randy
[EMAIL PROTECTED] schrieb:
Philipp Klaus Krause wrote:
Place another .area _CODE before the .area _GSINIT?
OK, I tried that, but it didn't make any difference, _GSINIT is still
in RAM.
But thanks for trying!
Randy
Umm, sorry, works fine here though. Looking at crt0.map I see that
Place another .area _CODE before the .area _GSINIT?
Philipp
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/