ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
24 ноября
18555 Топик полностью
Звероящер (16.12.2004 07:00, просмотров: 1) ответил prosto_Alex на Добейтесь компиляции и линковки из среды, а затем включите генерацию лист и меп и посмотрите какие опции испольовались для компиляции и линковки.
Там черт ногу сломит. И нет явного указания на залоченные регистры. Вот типа так: 
################################################################################
#                                                                              #
#      IAR Universal Linker V4.53O/WIN                                         #
#                                                                              #
#           Link time     =  14/Dec/2004  16:30:30                             #
#           Target CPU    =  A90                                               #
#           List file     =  D:\tt\Debug\List\tttt.map                         #
#           Output file 1 =  D:\tt\Debug\Exe\tttt.d90                          #
#                            Format: debug                                     #
#                            UBROF version 8.0.2                               #
#                            Using library modules for C-SPY (-rt)             #
#           Command line  =  D:\tt\Debug\Obj\main.r90                          #
#                            "C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr #
#                            \lib\cl0t.r90"                                    #
#                            -o D:\tt\Debug\Exe\tttt.d90 -rt -l                #
#                            D:\tt\Debug\List\tttt.map -xes                    #
#                            "-IC:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\a #
#                            vr\LIB\"                                          #
#                            -f                                                #
#                            "C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr #
#                            \src\template\lnk0t.xcl"                          #
#                            (-D_..X_CSTACK_SIZE=40 -D_..X_RSTACK_SIZE=10      #
#                            -D_..X_HEAP_SIZE=10 -ca90 -Z(CODE)INTVEC=0-2F     #
#                            -Z(CODE)TINY_F=0-FF                               #
#                            -Z(CODE)SWITCH,INITTAB,DIFUNCT=0-1FFF             #
#                            -Z(CODE)NEAR_F=0-1FFF -Z(CODE)CODE=0-1FFF         #
#                            -Z(CODE)TINY_ID,NEAR_ID,CHECKSUM=0-1FFF           #
#                            -Z(DATA)TINY_I,TINY_Z,TINY_N=60-FF                #
#                            -Z(DATA)CSTACK+_..X_CSTACK_SIZE=60-FF             #
#                            -Z(DATA)HEAP+_..X_HEAP_SIZE=60-FF                 #
#                            -Z(DATA)RSTACK+_..X_RSTACK_SIZE=60-FF             #
#                            -Z(DATA)NEAR_I,NEAR_Z,NEAR_N=60-FF                #
#                            -e_Printf_1=_Printf                               #
#                            -e_small_write=_formatted_write                   #
#                            -e_small_write_P=_formatted_write_P               #
#                            -e_Scanf_1=_Scanf                                 #
#                            -e_medium_read=_formatted_read                    #
#                            -e_medium_read_P=_formatted_read_P -w29)          #
#                                                                              #
#                        Copyright 1987-2002 IAR Systems. All rights reserved. #
################################################################################





                ****************************************
                *                                      *
                *           CROSS REFERENCE            *
                *                                      *
                ****************************************

                  There are no program entries.




                ****************************************
                *                                      *
                *            RUNTIME MODEL             *
                *                                      *
                ****************************************

  R12             = VAR
  R13             = VAR
  R15             = VAR
  __64bit_doubles = disabled
  __cpu           = 0
  __has_elpm      = false
  __memory_model  = 1
  __rt_version    = 2.30

                ****************************************
                *                                      *
                *              ENTRY LIST              *
                *                                      *
                ****************************************

?ABS_ENTRY_MOD
  _..X_HEAP_SIZE                   CODE      00000010 
  _..X_RSTACK_SIZE                 CODE      00000010 
  _..X_CSTACK_SIZE                 CODE      00000040 
main ( D:\tt\Debug\Obj\main.r90 )
  _A_DDRD                          DATA      00000031 
  _A_PORTD                         DATA      00000032 
  _A_DDRB                          DATA      00000037 
  _A_PORTB                         DATA      00000038 
  _A_TCNT1                         DATA      0000004C 
  _A_TCCR1B                        DATA      0000004E 
  _A_TCNT0                         DATA      00000052 
  _A_TCCR0                         DATA      00000053 
  _A_TIMSK                         DATA      00000059 
  LED                              DATA      0000000C 
  TT                               DATA      0000000D 
  i                                DATA      0000000F 
  notes                            CODE      0000000E 
  OverflowTimer0                   CODE      0000002A 
  OverflowTimer1                   CODE      00000054 
  main                             CODE      0000009A 
?RESET ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
?C_STARTUP ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  ?C_STARTUP                       CODE      000000DA 
  __RESTART                        CODE      000000DA 
  ?call_low_level_init             CODE      000000E0 
  ?cstartup_call_main              CODE      000000E2 
?REGISTER_REGVARR12_L10 ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  ?Register_R12_is_global_regvar   CODE      000000E8 
?REGISTER_REGVARR13_L10 ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  ?Register_R13_is_global_regvar   CODE      000000E8 
?REGISTER_REGVARR15_L10 ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  ?Register_R15_is_global_regvar   CODE      000000E8 
low_level_init ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  __low_level_init                 CODE      000000E8 
?segment_init ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
?__exit ( C:\PROGS\IAR SYSTEMS\EW23 EVALUATION VERSION\avr\lib\cl0t.r90 )
  __exit                           CODE      000000EE 
  ?C_EXIT                          CODE      000000EE 
  ?C_FUNCALL                       CODE      000000EC 
  _exit                            CODE      000000EC 
  exit                             CODE      000000EC 



                ****************************************
                *                                      *
                *      SEGMENTS IN ADDRESS ORDER       *
                *                                      *
                ****************************************


SEGMENT              SPACE   START ADDRESS    END ADDRESS      SIZE  TYPE  ALIGN
=======              =====   =============    ===========      ====  ====  =====
INTVEC               CODE         00000000 - 0000000D             E   com    1
NEAR_F               CODE         0000000E - 00000029            1C   rel    0
CODE                 CODE         0000002A - 000000F1            C8   rel    1
REGVAR_AN (ABS)      DATA         0000000C - 0000000C             1   rel    0
                     DATA         0000000D - 0000000D             1 
                     DATA         0000000F - 0000000F             1 
ABSOLUTE (ABS)       DATA         00000031 - 00000031             1   rel    0
                     DATA         00000032 - 00000032             1 
                     DATA         00000037 - 00000037             1 
                     DATA         00000038 - 00000038             1 
                     DATA         0000004C - 0000004D             2 
                     DATA         0000004E - 0000004E             1 
                     DATA         00000052 - 00000052             1 
                     DATA         00000053 - 00000053             1 
                     DATA         00000059 - 00000059             1 
CSTACK               DATA         00000060 - 0000009F            40   dse    0
RSTACK               DATA         000000A0 - 000000AF            10   dse    0

                ****************************************
                *                                      *
                *        END OF CROSS REFERENCE        *
                *                                      *
                ****************************************

  242 bytes of CODE memory
   93 bytes of DATA memory

Errors: none
Warnings: none