Re: [Sdcc-user] 8051 xdata, XINIT and XISEG

2007-09-22 Thread Maarten Brock
I remember having seen several header files for the FX2 floating on the internet and they all had one or more errors (always the same) in them. Apparently nobody reads the datasheet, instead everyone copies the errors. On 9/21/07, Frieder Ferlemann [EMAIL PROTECTED] wrote: thanks for

Re: [Sdcc-user] How do I get _GSINIT into code section? (z80)

2007-09-22 Thread bobrob
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