gcc q
Erez D
erez0001 at gmail.com
Mon Aug 23 10:19:42 IDT 2010
On Mon, Aug 23, 2010 at 10:00 AM, Shachar Shemesh <shachar at shemesh.biz>wrote:
> Erez D wrote:
>
> hi
>
> I am using gcc (actually avr-gcc) to compile some code for an AVR processor
> (AT32UC3L064).
> The code generated does a lot of things before entering main()
> There is some code i want it to do first - immediatly after powerup, before
> all other initializations.
>
> Is that before or instead of the usual initializations?
>
before.
>
> Also, are those initializations a compiler thing, or do you just have code
> running in global context (such as a global variable that gets its initial
> value from a function)?
>
i just want to run a hardware registers initialization function.
>
> I'm afraid your answers change the way to achieve what you are looking for.
>
> Shachar
>
> --
> Shachar Shemesh
> Lingnu Open Source Consulting Ltd.http://www.lingnu.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100823/6c751a1d/attachment.html>
More information about the Linux-il
mailing list