Yes, crt0i initializes variables, stack, etc and calls main(). You can see what it does more in detail here:

Just an offtopic comment: I would write void main(void)  instead of void main().

On Mon, Nov 12, 2012 at 9:50 AM, Soloviov Dmitry <> wrote:
BTW, gputils installed as distro package (apt-get install blah-blah)

$ gplink -v
gplink-0.13.7 beta

What is crt0i ? Is it something like bootstrap object to really call main()?

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Sdcc-user mailing list