[En-Nut-Discussion] GCC and main

Thiago A. Corrêa thiago.correa at gmail.com
Tue Jan 26 20:45:30 CET 2010


Hi,

On Tue, Jan 26, 2010 at 5:23 PM, Harald Kipp <harald.kipp at egnite.de> wrote:
>
> The #define is in arch/arm.h and arch/avr/gcc.h. It makes no difference,
> because the compiler will never see main. It's processed by the
> pre-compiler.
>

There is one in one of the avr32 header too. I guess arch/avr32.h. But
does this make any difference for Nut/OS? We don't have a main in
Nut/OS anyway, we have our own CRT assembly initialization for ARM and
AVR32, which calls NutInit. Perhaps it only applies to AVR, or am I
missing something?

Kind Regards,
   Thiago A. Correa



More information about the En-Nut-Discussion mailing list