/[avr-libc]/avr-libc/doc/api/sections.dox
ViewVC logotype

Diff of /avr-libc/doc/api/sections.dox

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.4.2 by joerg_wunsch, Wed Aug 31 20:57:09 2005 UTC revision 1.7.4.3 by joerg_wunsch, Tue Sep 6 18:19:22 2005 UTC
# Line 233  Example: Line 233  Example:
233  #include <avr/io.h>  #include <avr/io.h>
234    
235  void my_init_portb (void) __attribute__ ((naked)) \  void my_init_portb (void) __attribute__ ((naked)) \
236      __attribute__ ((section (".init1")));      __attribute__ ((section (".init3")));
237    
238  void  void
239  my_init_portb (void)  my_init_portb (void)
# Line 243  my_init_portb (void) Line 243  my_init_portb (void)
243  }  }
244  \endcode  \endcode
245    
246    \note Section .init3 is used in this example, as this ensures the
247    inernal <tt>__zero_reg__</tt> has already been set up.  The code
248    generated by the compiler might blindly rely on <tt>__zero_reg__</tt>
249    being really 0.
250    
251  */  */
252    

Legend:
Removed from v.1.7.4.2  
changed lines
  Added in v.1.7.4.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26