##############################################################################
#                                                                            #
# IAR ARM ANSI C/C++ Compiler V4.11A/W32               20/Jul/2004  18:58:46 #
# Copyright 1999-2004 IAR Systems. All rights reserved.                      #
#                                                                            #
#    Cpu mode        =  arm                                                  #
#    Endian          =  little                                               #
#    Stack alignment =  4                                                    #
#    Source file     =  C:\medusa\low_level_init.c                           #
#    Command line    =  -I "C:\Program Files\IAR Systems\Embedded Workbench  #
#                       4.0\ARM\INC\" -lc C:\medusa\Debug\List\ -la          #
#                       C:\medusa\Debug\List\ -o C:\medusa\Debug\Obj\ -s2    #
#                       --no_cse --no_unroll --no_inline --no_code_motion    #
#                       --no_tbaa --no_clustering --no_scheduling --debug    #
#                       --cpu_mode arm --endian little --cpu ARM7TDMI-S      #
#                       --stack_align 4 -e --fpu None                        #
#                       "-D_DLIB_CONFIG_FILE=C:\Program Files\IAR            #
#                       Systems\Embedded Workbench                           #
#                       4.0\ARM\LIB\dl4tpannl8n.h"                           #
#                       C:\medusa\low_level_init.c                           #
#    List file       =  C:\medusa\Debug\List\low_level_init.lst              #
#    Object file     =  C:\medusa\Debug\Obj\low_level_init.r79               #
#                                                                            #
#                                                                            #
##############################################################################

C:\medusa\low_level_init.c
      1          /**************************************************
      2           *
      3           * This module contains the function `__low_level_init', a function
      4           * that is called before the `main' function of the program.  Normally
      5           * low-level initializations - such as setting the prefered interrupt
      6           * level or setting the watchdog - can be performed here.
      7           *
      8           * Note that this function is called before the data segments are
      9           * initialized, this means that this function cannot rely on the
     10           * values of global or static variables.
     11           *
     12           * When this function returns zero, the startup code will inhibit the
     13           * initialization of the data segments. The result is faster startup,
     14           * the drawback is that neither global nor static data will be
     15           * initialized.
     16           *
     17           * Copyright 1999-2004 IAR Systems. All rights reserved.
     18           *
     19           * $Revision: 1.4.1.2 $
     20           *
     21           **************************************************/
     22          
     23          /* ICODE is the same segment as cstartup. By placing __low_level_init
     24           * in the same segment, we make sure it can be reached with BL. */
     25          
     26          #ifdef __cplusplus
     27          extern "C" {
     28          #endif
     29          
     30          #pragma language=extended
     31          
     32          
     33          #pragma location="ICODE"
     34          __interwork int __low_level_init(void)
     35          {
     36            /*==================================*/
     37            /*  Initialize hardware.            */
     38            /*==================================*/
     39            
     40            /*==================================*/
     41            /* Choose if segment initialization */
     42            /* should be done or not.           */
     43            /* Return: 0 to omit seg_init       */
     44            /*         1 to run seg_init        */
     45            /*==================================*/
     46            return (1);
     47          }
     48          
     49          #pragma language=default
     50          
     51          #ifdef __cplusplus
     52          }
     53          #endif
                       ^
Warning[Pe001]: last line of file ends without a newline

   Maximum stack usage in bytes:

     Function         CSTACK
     --------         ------
     __low_level_init     0


   Segment part sizes:

     Function/Label   Bytes
     --------------   -----
     __low_level_init    8

 
 8 bytes in segment ICODE
 
 8 bytes of CODE memory

Errors: none
Warnings: 1
