This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Want to remove unused rts.lib function from my executable

Other Parts Discussed in Thread: CCSTUDIO

Hi All,

I am using CCS 3.1.30 (bios cuda-4.90.100.12 ; CGT v5.1.0) with dsp C5402 and I filled up all memory space. 

In the map file I notice that somes functions from the rts.lib are present event if I never use them (ie: printf).
Is it possible to say the compiler not to link unsed function ?

Thanks

  • Hi,

    The linker does not include unused functions in the output file, therefore some function may be using printf() or one of its derivatives (fprintf, vsnprintf, etc.) that are causing printf() to be linked. Can you send the linker map file (the entire project would be preferrable) in order to have a better idea on what may be happening?

    Hope this helps,

    Rafael

     

     

  • Hi,

    I agree your answer, but for the same source...
    * when I compile with CCS2.0 my code fit in memory and there is no reference to printf in the map file
    * when I compile with CCS3.0 my code do not fit in memory and there is reference to printf !

    I just rebuild the source with an computer with CCS2.0 and with another with CCS3.1
    Please found herafter the map file.

    See map with CCS2.0

    ******************************************************************************
             TMS320C54x COFF Linker PC Version 3.83               
    ******************************************************************************
    >> Linked Thu Jul 15 14:57:22 2010

    OUTPUT FILE NAME:   <../C5402/release/dsi6coders.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 00001b20


    MEMORY CONFIGURATION

                      name            origin    length      used    attr    fill
             ----------------------  --------  ---------  --------  ----  --------
    PAGE  0: VECT                    00000080   00000080  00000080  RWIX
             IPROG                   00001a90   00002570  0000254a  RWIX
             EPROG                   00004000   00004000  00003f93  RWIX

    PAGE  1: USERREGS                00000060   0000001a  00000000  RWIX
             CSLREGS                 0000007a   00000002  00000000  RWIX
             BIOSREGS                0000007c   00000004  00000004  RWIX
             IDATA                   00000100   00001990  00001829  RWIX
             FLASHEDATA              00008000   00007000  00000000  RWIX


    SECTION ALLOCATION MAP

     output                                  attributes/
    section   page    origin      length       input sections
    --------  ----  ----------  ----------   ----------------
    .hwi_vec   0    00000080    00000080    
                      00000080    00000080     dsi6coderscfg.obj (.hwi_vec)

    .hwi       0    00001a90    00000000     UNINITIALIZED

    .gblinit   0    00001a90    00000013    
                      00001a90    00000013     dsi6coderscfg.obj (.gblinit)

    .sysinit   0    00001aa3    000000e4    
                      00001aa3    0000007d     dsi6coderscfg.obj (.sysinit)
                      00001b20    00000067     bios.a54 : boot.o54 (.sysinit)

    .switch    0    00001b87    00000034    
                      00001b87    0000000b     hw_hardware.lib : hw_dsip3pflash.obj (.switch)
                      00001b92    00000029     sac_sensor.lib : sac_command.obj (.switch)

    .cinit     0    00001bbb    00000436    
                      00001bbb    000000bf     dsi6coders.obj (.cinit)
                      00001c7a    00000136     dsi6coderscfg.obj (.cinit)
                      00001db0    00000005     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.cinit)
                      00001db5    00000009     hwb_hwassembly.lib : hwb_codeuronbus.obj (.cinit)
                      00001dbe    00000003     sac_sensor.lib : sac_manager.obj (.cinit)
                      00001dc1    00000003     u_util.lib : u_extrapolation.obj (.cinit)
                      00001dc4    000000c1     bios.a54 : biosdata.o54 (.cinit)
                      00001e85    0000005a              : knl.o54 (.cinit)
                      00001edf    00000003              : knl_swit.o54 (.cinit)
                      00001ee2    00000006              : knl_tick.o54 (.cinit)
                      00001ee8    00000003              : mbx_crea.o54 (.cinit)
                      00001eeb    00000008              : obj_init.o54 (.cinit)
                      00001ef3    00000003              : sem_crea.o54 (.cinit)
                      00001ef6    00000018              : tsk.o54 (.cinit)
                      00001f0e    00000006              : sys.o54 (.cinit)
                      00001f14    0000000b              : tsk_stup.o54 (.cinit)
                      00001f1f    00000004              : hwi_disp.o54 (.cinit)
                      00001f23    000000b8     csl5402.lib : csl_csldat.obj (.cinit)
                      00001fdb    00000006     rts.lib : _lock.obj (.cinit)
                      00001fe1    00000003             : new_.obj (.cinit)
                      00001fe4    00000009             : exit.obj (.cinit)
                      00001fed    00000003             : sinit.obj (.cinit)
                      00001ff0    00000001     --HOLE-- [fill = 0]

    .bios      0    00001ff1    00000f46    
                      00001ff1    00000034     bios.a54 : clk_isr.o54 (.bios:.norptb)
                      00002025    00000001              : clk_rete.o54 (.bios:.near)
                      00002026    0000000e              : fxn.o54 (.bios:.near)
                      00002034    00000001              : gbl_chip.o54 (.bios:.near)
                      00002035    00000015              : gbl_cslinit54.o (.bios)
                      0000204a    00000003              : gbl_vers.o54 (.bios:.near)
                      0000204d    00000018              : idl.o54 (.bios:.near)
                      00002065    00000026              : log.o54 (.bios:.near)
                      0000208b    00000027              : sts.o54 (.bios:.near)
                      000020b2    000001d6              : swi.o54 (.bios:.near)
                      00002288    00000045              : clk.o54 (.bios:.near)
                      000022cd    0000002e              : fxn_exec.o54 (.bios:.near)
                      000022fb    00000012              : knl_exit.o54 (.bios)
                      0000230d    00000072              : knl_run.o54 (.bios)
                      0000237f    00000028              : knl_chec.o54 (.bios:.near)
                      000023a7    0000003d              : knl_swit.o54 (.bios)
                      000023e4    0000000f              : knl_swit.o54 (.bios:.near)
                      000023f3    00000079              : knl_tick.o54 (.bios)
                      0000246c    0000001f              : knl_post.o54 (.bios)
                      0000248b    00000021              : knl_ipos.o54 (.bios)
                      000024ac    0000006e              : mbx.o54 (.bios)
                      0000251a    0000007c              : mbx_crea.o54 (.bios)
                      00002596    00000045              : mbx_dele.o54 (.bios)
                      000025db    0000009a              : mem_allo.o54 (.bios:.near)
                      00002675    0000009f              : mem_free.o54 (.bios:.near)
                      00002714    00000063              : mem_init.o54 (.bios:.near)
                      00002777    0000002e              : mem_vall.o54 (.bios:.near)
                      000027a5    00000036              : mem_rom.o54 (.bios:.near)
                      000027db    00000010              : mem_rom.o54 (.bios:.wrap)
                      000027eb    0000002c              : obj_crea.o54 (.bios)
                      00002817    00000032              : obj_dele.o54 (.bios)
                      00002849    00000001              : obj_init.o54 (.bios)
                      0000284a    00000030              : que_get.o54 (.bios)
                      0000287a    00000023              : sem_crea.o54 (.bios)
                      0000289d    0000000b              : sem_dele.o54 (.bios)
                      000028a8    00000061              : sem_dopo.o54 (.bios)
                      00002909    00000005              : sem_ipos.o54 (.bios)
                      0000290e    00000035              : sem_post_asm.o5 (.bios)
                      00002943    0000000b              : sem_post.o54 (.bios)
                      0000294e    00000035              : sem_pend_asm.o5 (.bios)
                      00002983    000000a2              : sem_pend.o54 (.bios)
                      00002a25    0000000b              : swi_post.o54 (.bios:.wrap)
                      00002a30    00000017              : sys_erro.o54 (.bios:.near)
                      00002a47    0000000a              : sys_asm.o54 (.bios:.near)
                      00002a51    00000069              : tsk_exit.o54 (.bios)
                      00002aba    00000027              : sys_exit.o54 (.bios)
                      00002ae1    0000001d              : tsk_init.o54 (.bios)
                      00002afe    00000054              : tsk_setu.o54 (.bios)
                      00002b52    0000003a              : tsk_stup.o54 (.bios)
                      00002b8c    0000003d              : lck.o54 (.bios)
                      00002bc9    00000042              : atm.o54 (.bios)
                      00002c0b    00000005              : clk_countspms.o (.bios:.wrap)
                      00002c10    00000004              : clk_getprd.o54 (.bios:.wrap)
                      00002c14    00000001              : fxn_c.o54 (.bios)
                      00002c15    00000010              : hwi_c.o54 (.bios:.wrap)
                      00002c25    0000000e              : idl_c.o54 (.bios:.wrap)
                      00002c33    0000002e              : prd_c.o54 (.bios:.wrap)
                      00002c61    00000034              : prd_tick.o54 (.bios:.near)
                      00002c95    0000003d              : hwi_disp.o54 (.bios)
                      00002cd2    00000030              : c54_asm.o54 (.bios)
                      00002d02    0000014c              : hwi_disp_asm.o5 (.bios:.norptb)
                      00002e4e    000000e9              : malloc.o54 (.bios)

    SECTION_DAS_RT
    *          0    00002f37    00000168    
                      00002f37    00000168     das_asynchrone.lib : das_driver.obj (SECTION_DAS_RT)

    SECTION_S_RT
    *          0    0000309f    00000001    
                      0000309f    00000001     s_system.lib : s_functionpointer.obj (SECTION_S_RT)

    SECTION_EV_RT
    *          0    000030a0    0000004a    
                      000030a0    0000004a     ev_evtman.lib : ev_logger.obj (SECTION_EV_RT)

    SECTION_HW_RT
    *          0    000030ea    000002e1    
                      000030ea    000000dd     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_RT)
                      000031c7    00000007                     : _hw_dma.obj (SECTION_HW_RT)
                      000031ce    00000144                     : hw_busslave.obj (SECTION_HW_RT)
                      00003312    00000007                     : hw_mcbsp.obj (SECTION_HW_RT)
                      00003319    000000b2                     : _hw_busslavehsm.obj (SECTION_HW_RT)

    SECTION_HWA_RT
    *          0    000033cb    00000361    
                      000033cb    00000159     hw_hardware.lib : hw_coder.obj (SECTION_HWA_RT)
                      00003524    00000073     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (SECTION_HWA_RT)
                      00003597    00000073                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_RT)
                      0000360a    000000bf     das_asynchrone.lib : das_driver.obj (SECTION_HWA_RT)
                      000036c9    00000063                        : das_spliter.obj (SECTION_HWA_RT)

    SECTION_HWB_RT
    *          0    0000372c    00000259    
                      0000372c    00000259     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_RT)

    SECTION_DSI_RT
    *          0    00003985    00000344    
                      00003985    00000344     dsi6coders.obj (SECTION_DSI_RT)

    SECTION_DSI_CTOR
    *          0    00003cc9    0000013b    
                      00003cc9    0000013b     dsi6coders.obj (SECTION_DSI_CTOR)

    SECTION_DSI_TSK
    *          0    00003e04    000000af    
                      00003e04    000000af     dsi6coders.obj (SECTION_DSI_TSK)

    SECTION_HAL_TSK
    *          0    00003eb3    0000001b    
                      00003eb3    0000001b     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_TSK)

    SECTION_HWB_CTOR
    *          0    00003ece    00000061    
                      00003ece    00000061     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_CTOR)

    SECTION_S_TSK
    *          0    00003f2f    00000045    
                      00003f2f    00000002     s_system.lib : s_assert.obj (SECTION_S_TSK)
                      00003f31    00000043                  : s_functionpointer.obj (SECTION_S_TSK)

    SECTION_DAS_CTOR
    *          0    00003f74    00000066    
                      00003f74    00000036     das_asynchrone.lib : das_driver.obj (SECTION_DAS_CTOR)
                      00003faa    00000030                        : das_spliter.obj (SECTION_DAS_CTOR)

    frt        0    00004000    00000000     UNINITIALIZED

    .trcdata   0    00004000    00000002    
                      00004000    00000002     dsi6coderscfg.obj (.trcdata)

    .text      0    00004002    000024dd    
                      00004002    00000018     datetime.obj (.text)
                      0000401a    000003be     dsi6coders.obj (.text)
                      000043d8    00000001     dsi6coderscfg_c.obj (.text:CSL_cfgInit)
                      000043d9    0000002c     hal_hwabs.lib : hal_endat.obj (.text)
                      00004405    0000031d                   : hal_filesystem.obj (.text)
                      00004722    00000039                   : hal_pflash.obj (.text)
                      0000475b    0000000e     hw_hardware.lib : hw_calibration.obj (.text)
                      00004769    00000050                     : hw_coder.obj (.text)
                      000047b9    00000146                     : hw_dsip3.obj (.text)
                      000048ff    00000032                     : hw_dsip3_fpga.obj (.text)
                      00004931    00000141                     : hw_endat.obj (.text)
                      00004a72    00000012                     : hw_thermo.obj (.text)
                      00004a84    00000040                     : hw_dsip3pflash.obj (.text)
                      00004ac4    0000001c     hwa_hwassembly.lib : hwa_evbusclientslave.obj (.text)
                      00004ae0    000000dd                        : hwa_physicalbusdeviceslave.obj (.text)
                      00004bbd    000000db                        : hwa_physicalbusdeviceslavebus.obj (.text)
                      00004c98    000000c8                        : hwa_physicalbusdevice.obj (.text)
                      00004d60    0000001c     hwb_hwassembly.lib : hwb_codeuronbus.obj (.text)
                      00004d7c    0000001b     s_system.lib : s_defs.obj (.text)
                      00004d97    00000302     sac_sensor.lib : sac_manager.obj (.text)
                      00005099    00000dd5                    : sac_command.obj (.text)
                      00005e6e    000000fe     u_util.lib : u_extrapolation.obj (.text)
                      00005f6c    0000003b                : u_speedcalc.obj (.text)
                      00005fa7    00000013     ev_evtman.lib : ev_loghandler.obj (.text)
                      00005fba    0000000d     csl5402.lib : _csl_init.obj (.text:_CSL_init)
                      00005fc7    00000024                 : dma_close.obj (.text:DMA_close)
                      00005feb    00000034                 : dma_gblcfg.obj (.text:DMA_globalConfig)
                      0000601f    00000075                 : dma_open.obj (.text:DMA_open)
                      00006094    00000081                 : dma_reset.obj (.text:DMA_reset)
                      00006115    00000013                 : dma_stop.obj (.text:DMA_stop)
                      00006128    00000008                 : irq_gdis.obj (.text:IRQ_globalDisable)
                      00006130    00000008                 : irq_genab.obj (.text:IRQ_globalEnable)
                      00006138    0000000e                 : irq_grest.obj (.text:IRQ_globalRestore)
                      00006146    0000001f                 : mcbsp_cls.obj (.text:MCBSP_close)
                      00006165    00000064                 : mcbsp_open.obj (.text:MCBSP_open)
                      000061c9    000000b5                 : mcbsp_rst.obj (.text:MCBSP_reset)
                      0000627e    00000073                 : tim_open.obj (.text:TIMER_open)
                      000062f1    00000047                 : tim_rst.obj (.text:TIMER_reset)
                      00006338    00000007     rts.lib : _lock.obj (.text)
                      0000633f    00000005             : del_af.obj (.text)
                      00006344    0000000a             : del_sof.obj (.text)
                      0000634e    000000a5             : ldiv.obj (.text)
                      000063f3    00000014             : lmpy.obj (.text)
                      00006407    0000000e             : memcpy.obj (.text)
                      00006415    00000005             : new_af.obj (.text)
                      0000641a    00000025             : new_sof.obj (.text)
                      0000643f    0000000b             : new_.obj (.text)
                      0000644a    00000052             : exit.obj (.text)
                      0000649c    00000005             : purev.obj (.text)
                      000064a1    00000032             : sinit.obj (.text)
                      000064d3    0000000c             : udiv.obj (.text)

    .pinit     0    000064df    00000006    
                      000064df    00000001     dsi6coders.obj (.pinit)
                      000064e0    00000001     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.pinit)
                      000064e1    00000001                        : hwa_physicalbusdevice.obj (.pinit)
                      000064e2    00000001     s_system.lib : s_defs.obj (.pinit)
                      000064e3    00000002     --HOLE-- [fill = 0]

    SECTION_HAL_ENDAT_TSK
    *          0    000064e5    00000233    
                      000064e5    00000233     hal_hwabs.lib : hal_endat.obj (SECTION_HAL_ENDAT_TSK)

    SECTION_HAL_CTOR
    *          0    00006718    0000018c    
                      00006718    00000038     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_CTOR)
                      00006750    0000002a                   : hal_pflash.obj (SECTION_HAL_CTOR)
                      0000677a    00000086                   : hal_coderinterface.obj (SECTION_HAL_CTOR)
                      00006800    0000002f                   : hal_dsifpga.obj (SECTION_HAL_CTOR)
                      0000682f    0000005f                   : hal_termointerface.obj (SECTION_HAL_CTOR)
                      0000688e    00000016                   : hal_thermo.obj (SECTION_HAL_CTOR)

    SECTION_HW_TSK
    *          0    000068a4    0000059a    
                      000068a4    000000b3     hal_hwabs.lib : hal_pflash.obj (SECTION_HW_TSK)
                      00006957    000001ce     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_TSK)
                      00006b25    00000114                     : hw_calibration.obj (SECTION_HW_TSK)
                      00006c39    000000e9                     : hw_dsip3_fpga.obj (SECTION_HW_TSK)
                      00006d22    0000011c                     : hw_dsip3pflash.obj (SECTION_HW_TSK)

    SECTION_HW_CTOR
    *          0    00006e3e    0000066f    
                      00006e3e    0000027d     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_CTOR)
                      000070bb    00000040                     : _hw_dma.obj (SECTION_HW_CTOR)
                      000070fb    000000ef                     : hw_busslave.obj (SECTION_HW_CTOR)
                      000071ea    0000001c                     : hw_calibration.obj (SECTION_HW_CTOR)
                      00007206    00000045                     : hw_coder.obj (SECTION_HW_CTOR)
                      0000724b    000001aa                     : hw_dsip3_fpga.obj (SECTION_HW_CTOR)
                      000073f5    00000040                     : hw_mcbsp.obj (SECTION_HW_CTOR)
                      00007435    00000032                     : hw_thermo.obj (SECTION_HW_CTOR)
                      00007467    0000001e                     : hw_dsip3pflash.obj (SECTION_HW_CTOR)
                      00007485    00000028                     : _hw_busslavehsm.obj (SECTION_HW_CTOR)

    SECTION_HWA_TSK
    *          0    000074ad    000002f8    
                      000074ad    00000010     hw_hardware.lib : hw_coder.obj (SECTION_HWA_TSK)
                      000074bd    00000010                     : hw_thermo.obj (SECTION_HWA_TSK)
                      000074cd    0000012c     hwa_hwassembly.lib : hwa_evbusclientslave.obj (SECTION_HWA_TSK)
                      000075f9    00000036                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_TSK)
                      0000762f    00000176                        : hwa_physicalbusdevice.obj (SECTION_HWA_TSK)

    SECTION_HWA_CTOR
    *          0    000077a5    000002cf    
                      000077a5    00000043     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (SECTION_HWA_CTOR)
                      000077e8    0000003f                        : hwa_busdeviceasynchroslave.obj (SECTION_HWA_CTOR)
                      00007827    00000045                        : hwa_busdevicesynchro.obj (SECTION_HWA_CTOR)
                      0000786c    0000001e                        : hwa_evbusclientslave.obj (SECTION_HWA_CTOR)
                      0000788a    0000005a                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_CTOR)
                      000078e4    00000054                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_CTOR)
                      00007938    00000067                        : hwa_busdevice.obj (SECTION_HWA_CTOR)
                      0000799f    00000047                        : hwa_communication.obj (SECTION_HWA_CTOR)
                      000079e6    0000008e                        : hwa_physicalbusdevice.obj (SECTION_HWA_CTOR)

    SECTION_S_CTOR
    *          0    00007a74    000000e2    
                      00007a74    0000002c     s_system.lib : s_functionpointer.obj (SECTION_S_CTOR)
                      00007aa0    00000043                  : s_mbx.obj (SECTION_S_CTOR)
                      00007ae3    00000073                  : s_sem.obj (SECTION_S_CTOR)

    SECTION_SAC_TSK
    *          0    00007b56    00000314    
                      00007b56    00000314     sac_sensor.lib : sac_manager.obj (SECTION_SAC_TSK)

    SECTION_U_CTOR
    *          0    00007e6a    000000d0    
                      00007e6a    00000084     u_util.lib : u_bufferseg.obj (SECTION_U_CTOR)
                      00007eee    0000004c                : u_speedcalc.obj (SECTION_U_CTOR)

    SECTION_EV_TSK
    *          0    00007f3a    00000031    
                      00007f3a    00000031     ev_evtman.lib : ev_logger.obj (SECTION_EV_TSK)

    SECTION_EV_CTOR
    *          0    00007f6b    00000028    
                      00007f6b    00000028     ev_evtman.lib : ev_logger.obj (SECTION_EV_CTOR)

    .sysregs   1    0000007c    00000004    
                      0000007c    00000004     bios.a54 : biosdata.o54 (.sysregs)

    .data      1    00000100    00000000     UNINITIALIZED

    .pip       1    00000100    00000000     UNINITIALIZED

    .gio       1    00000100    00000000     UNINITIALIZED

    .far       1    00000100    00000000     UNINITIALIZED

    .hst       1    00000100    00000000     UNINITIALIZED

    .dsm       1    00000100    00000000     UNINITIALIZED

    .LOG_system$buf
    *          1    00000100    00000000    

    .cio       1    00000100    00000000     UNINITIALIZED

    .prd       1    00000100    00000000     UNINITIALIZED

    .clk       1    00000100    00000000     UNINITIALIZED

    .swi       1    00000100    0000000c     UNINITIALIZED
                      00000100    0000000c     dsi6coderscfg.obj (.swi)

    .idl       1    0000010c    00000002     UNINITIALIZED
                      0000010c    00000001     dsi6coderscfg.obj (.idl)
                      0000010d    00000001     dsi6coderscfg.obj (.idlcal)

    .args      1    0000010e    00000004    
                      0000010e    00000004     --HOLE-- [fill = 0000]

    .mem       1    00000112    00000001     UNINITIALIZED
                      00000112    00000001     dsi6coderscfg.obj (.mem)

    .TSK_idle$stk
    *          1    00000114    00000058     UNINITIALIZED
                      00000114    00000058     dsi6coderscfg.obj (.TSK_idle$stk)

    .log       1    0000016c    00000006    
                      0000016c    00000006     dsi6coderscfg.obj (.log)

    .sts       1    00000172    00000008    
                      00000172    00000008     dsi6coderscfg.obj (.sts)

    .sys       1    0000017a    00000004     UNINITIALIZED
                      0000017a    00000004     dsi6coderscfg.obj (.sys)

    .bss       1    00000180    000004bf     UNINITIALIZED
                      00000180    0000036c     dsi6coders.obj (.bss)
                      000004ec    00000080     bios.a54 : hwi_disptab.o54 (.bss)
                      0000056c    00000006     hwa_hwassembly.lib : hwa_physicalbusdevice.obj (.bss)
                      00000572    00000001     bios.a54 : mem_asm.o54 (.bss)
                      00000573    0000000a              : sys.o54 (.bss)
                      0000057d    00000002     rts.lib : new_.obj (.bss)
                      00000580    0000001b     dsi6coderscfg.obj (.bss)
                      0000059b    00000048     bios.a54 : knl.o54 (.bss)
                      000005e3    00000023     rts.lib : exit.obj (.bss)
                      00000606    00000010     bios.a54 : tsk.o54 (.bss)
                      00000616    00000009              : tsk_stup.o54 (.bss)
                      0000061f    00000006              : obj_init.o54 (.bss)
                      00000625    00000004              : knl_tick.o54 (.bss)
                      00000629    00000004     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.bss)
                      0000062d    00000003     s_system.lib : s_defs.obj (.bss)
                      00000630    00000003     sac_sensor.lib : sac_manager.obj (.bss)
                      00000633    00000003     hwb_hwassembly.lib : hwb_codeuronbus.obj (.bss)
                      00000636    00000002     rts.lib : _lock.obj (.bss)
                      00000638    00000002     bios.a54 : hwi_disp.o54 (.bss)
                      0000063a    00000001              : sem_crea.o54 (.bss)
                      0000063b    00000001              : mbx_crea.o54 (.bss)
                      0000063c    00000001     u_util.lib : u_extrapolation.obj (.bss)
                      0000063d    00000001     bios.a54 : gbl_cslinit54.o (.bss)
                      0000063e    00000001     rts.lib : sinit.obj (.bss)

    .sysdata   1    00000680    0000005b     UNINITIALIZED
                      00000680    0000005b     bios.a54 : biosdata.o54 (.sysdata)

    .csldata   1    000006dc    000000b6     UNINITIALIZED
                      000006dc    000000b6     csl5402.lib : csl_csldat.obj (.csldata)

    .tsk       1    00000792    00000078     UNINITIALIZED
                      00000792    00000078     dsi6coderscfg.obj (.tsk)

    .const     1    0000080a    0000017c    
                      0000080a    0000001a     datetime.obj (.const)
                      00000824    00000015     dsi6coders.obj (.const)
                      00000839    00000014     hal_hwabs.lib : hal_endat.obj (.const)
                      0000084d    00000010                   : hal_coder.obj (.const)
                      0000085d    00000010                   : hal_pflash.obj (.const)
                      0000086d    00000010     hw_hardware.lib : hw_coder.obj (.const)
                      0000087d    00000024                     : hw_dsip3_fpga.obj (.const)
                      000008a1    00000028                     : hw_endat.obj (.const)
                      000008c9    00000004                     : hw_thermo.obj (.const)
                      000008cd    00000010                     : hw_dsip3pflash.obj (.const)
                      000008dd    00000006     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (.const)
                      000008e3    00000006                        : hwa_busdeviceasynchroslave.obj (.const)
                      000008e9    00000006                        : hwa_busdevicesynchro.obj (.const)
                      000008ef    00000008                        : hwa_evbusclientslave.obj (.const)
                      000008f7    00000010                        : hwa_physicalbusdeviceslave.obj (.const)
                      00000907    00000010                        : hwa_physicalbusdeviceslavebus.obj (.const)
                      00000917    0000000a                        : hwa_busdevice.obj (.const)
                      00000921    00000024                        : hwa_physicalbusdevice.obj (.const)
                      00000945    00000006     hwb_hwassembly.lib : hwb_codeuronbus.obj (.const)
                      0000094b    00000004     s_system.lib : s_functionpointer.obj (.const)
                      0000094f    0000000c     sac_sensor.lib : sac_manager.obj (.const)
                      0000095b    00000004                    : sac_command.obj (.const)
                      0000095f    00000004     hal_hwabs.lib : hal_coderinterface.obj (.const)
                      00000963    00000012                   : hal_dsifpga.obj (.const)
                      00000975    00000004                   : hal_termointerface.obj (.const)
                      00000979    00000004                   : hal_thermo.obj (.const)
                      0000097d    00000004     bios.a54 : mem_allo.o54 (.const)
                      00000981    00000004              : mem_free.o54 (.const)
                      00000985    00000001              : tsk.o54 (.const)

    .TSK_BusLed$stk
    *          1    00000986    00000058     UNINITIALIZED
                      00000986    00000058     dsi6coderscfg.obj (.TSK_BusLed$stk)

    .TSK_async0$stk
    *          1    000009de    000000d0     UNINITIALIZED
                      000009de    000000d0     dsi6coderscfg.obj (.TSK_async0$stk)

    .stack     1    00000aae    00000820    
                      00000aae    00000820     --HOLE-- [fill = beef]

    .TSK_async1$stk
    *          1    000012ce    000000d0     UNINITIALIZED
                      000012ce    000000d0     dsi6coderscfg.obj (.TSK_async1$stk)

    .TSK_async2$stk
    *          1    0000139e    000000d0     UNINITIALIZED
                      0000139e    000000d0     dsi6coderscfg.obj (.TSK_async2$stk)

    .IDATA$heap
    *          1    0000146e    00000500     UNINITIALIZED

     

    #################################################################################################################################

    and map for CCS3.1

    ******************************************************************************
             TMS320C54x COFF Linker PC v4.1.0                     
    ******************************************************************************
    >> Linked Thu Jul 15 14:42:18 2010

    OUTPUT FILE NAME:   <../C5402/release/dsi6coders.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 00002f40


    MEMORY CONFIGURATION

                      name            origin    length      used    attr    fill
             ----------------------  --------  ---------  --------  ----  --------
    PAGE  0: VECT                    00000080   00000080  00000080  RWIX
             IPROG                   00001a90   00002570  00002570  RWIX
             EPROG                   00004000   00004000  00001b58  RWIX

    PAGE  1: USERREGS                00000060   0000001a  00000000  RWIX
             CSLREGS                 0000007a   00000002  00000000  RWIX
             BIOSREGS                0000007c   00000004  00000004  RWIX
             IDATA                   00000100   00001990  00001987  RWIX
             FLASHEDATA              00008000   00007000  00000000  RWIX


    SECTION ALLOCATION MAP

     output                                  attributes/
    section   page    origin      length       input sections
    --------  ----  ----------  ----------   ----------------
    .text      0    00000000    00004151    
                      00000000    00000018     datetime.obj (.text)
                      00000018    000003ac     dsi6coders.obj (.text)
                      000003c4    00000001     dsi6coderscfg_c.obj (.text:CSL_cfgInit)
                      000003c5    0000002c     hal_hwabs.lib : hal_endat.obj (.text)
                      000003f1    00000323                   : hal_filesystem.obj (.text)
                      00000714    00000037                   : hal_pflash.obj (.text)
                      0000074b    0000000e     hw_hardware.lib : hw_calibration.obj (.text)
                      00000759    00000050                     : hw_coder.obj (.text)
                      000007a9    00000129                     : hw_dsip3.obj (.text)
                      000008d2    00000019                     : hw_dsip3_fpga.obj (.text)
                      000008eb    00000141                     : hw_endat.obj (.text)
                      00000a2c    00000012                     : hw_thermo.obj (.text)
                      00000a3e    00000040                     : hw_dsip3pflash.obj (.text)
                      00000a7e    0000001c     hwa_hwassembly.lib : hwa_evbusclientslave.obj (.text)
                      00000a9a    000000dd                        : hwa_physicalbusdeviceslave.obj (.text)
                      00000b77    000000d8                        : hwa_physicalbusdeviceslavebus.obj (.text)
                      00000c4f    00000079                        : hwa_physicalbusdevice.obj (.text)
                      00000cc8    0000001c     hwb_hwassembly.lib : hwb_codeuronbus.obj (.text)
                      00000ce4    0000001c     s_system.lib : s_defs.obj (.text)
                      00000d00    00000305     sac_sensor.lib : sac_manager.obj (.text)
                      00001005    00000da7                    : sac_command.obj (.text)
                      00001dac    000000f9     u_util.lib : u_extrapolation.obj (.text)
                      00001ea5    0000003d                : u_speedcalc.obj (.text)
                      00001ee2    00000013     ev_evtman.lib : ev_loghandler.obj (.text)
                      00001ef5    0000000d     csl5402.lib : _csl_init.obj (.text:_CSL_init)
                      00001f02    00000024                 : dma_close.obj (.text:DMA_close)
                      00001f26    00000034                 : dma_gblcfg.obj (.text:DMA_globalConfig)
                      00001f5a    00000075                 : dma_open.obj (.text:DMA_open)
                      00001fcf    00000081                 : dma_reset.obj (.text:DMA_reset)
                      00002050    00000013                 : dma_stop.obj (.text:DMA_stop)
                      00002063    00000008                 : irq_gdis.obj (.text:IRQ_globalDisable)
                      0000206b    00000008                 : irq_genab.obj (.text:IRQ_globalEnable)
                      00002073    0000000e                 : irq_grest.obj (.text:IRQ_globalRestore)
                      00002081    0000001f                 : mcbsp_cls.obj (.text:MCBSP_close)
                      000020a0    00000064                 : mcbsp_open.obj (.text:MCBSP_open)
                      00002104    000000b5                 : mcbsp_rst.obj (.text:MCBSP_reset)
                      000021b9    00000073                 : tim_open.obj (.text:TIMER_open)
                      0000222c    00000047                 : tim_rst.obj (.text:TIMER_reset)
                      00002273    00000005     rts.lib : array_del.obj (.text)
                      00002278    00000005             : array_new.obj (.text)
                      0000227d    0000000a             : delete.obj (.text)
                      00002287    00000036             : new_.obj (.text)
                      000022bd    00000001             : newhandler.obj (.text)
                      000022be    00000007             : pure_virt.obj (.text)
                      000022c5    00000066             : error.obj (.text)
                      0000232b    00000007             : _lock.obj (.text)
                      00002332    00000052             : exit.obj (.text)
                      00002384    00000030             : fprintf.obj (.text)
                      000023b4    00000b74             : _printfi.obj (.text)
                      00002f28    00000057             : atoi.obj (.text)
                      00002f7f    00000114             : ecvt.obj (.text)
                      00003093    00000020             : f_cmp.obj (.text)
                      000030b3    0000009a             : f_div.obj (.text)
                      0000314d    00000001             : f_error.obj (.text)
                      0000314e    0000003c             : f_ftoi.obj (.text)
                      0000318a    0000004b             : f_ftol.obj (.text)
                      000031d5    0000002a             : f_ltof.obj (.text)
                      000031ff    00000073             : f_mul.obj (.text)
                      00003272    00000005             : f_neg.obj (.text)
                      00003277    00000009             : f_sub.obj (.text)
                      00003280    0000009f             : f_add.obj (.text)
                      0000331f    0000010c             : fcvt.obj (.text)
                      0000342b    0000006a             : fputc.obj (.text)
                      00003495    00000098             : _io_perm.obj (.text)
                      0000352d    00000077             : fflush.obj (.text)
                      000035a4    000000f6             : fputs.obj (.text)
                      0000369a    0000003f             : fseek.obj (.text)
                      000036d9    000000a5             : ldiv.obj (.text)
                      0000377e    00000014             : lmpy.obj (.text)
                      00003792    00000349             : lowlev.obj (.text)
                      00003adb    00000049             : ltoa.obj (.text)
                      00003b24    00000020             : memccpy.obj (.text)
                      00003b44    0000000e             : memcpy.obj (.text)
                      00003b52    00000087             : setvbuf.obj (.text)
                      00003bd9    00000180             : fopen.obj (.text)
                      00003d59    00000050             : fclose.obj (.text)
                      00003da9    00000005             : remove.obj (.text)
                      00003dae    0000002e             : sinit.obj (.text)
                      00003ddc    000002b5             : trgdrv.obj (.text)
                      00004091    000000b4             : ldmsg.obj (.text)
                      00004145    0000000c             : udiv.obj (.text)

    .hwi_vec   0    00000080    00000080    
                      00000080    00000080     dsi6coderscfg.obj (.hwi_vec)

    .hwi       0    00001a90    00000000     UNINITIALIZED

    .bios      0    00001a90    00000f4d    
                      00001a90    00000001     bios.a54 : clk_rete.o54 (.bios:.near)
                      00001a91    0000000e              : fxn.o54 (.bios:.near)
                      00001a9f    00000001              : gbl_chip.o54 (.bios:.near)
                      00001aa0    00000015              : gbl_cslinit54.o (.bios)
                      00001ab5    00000003              : gbl_vers.o54 (.bios:.near)
                      00001ab8    00000018              : idl.o54 (.bios:.near)
                      00001ad0    00000027              : sts.o54 (.bios:.near)
                      00001af7    000001e0              : swi.o54 (.bios:.near)
                      00001cd7    00000045              : clk.o54 (.bios:.near)
                      00001d1c    0000002e              : fxn_exec.o54 (.bios:.near)
                      00001d4a    00000026              : log.o54 (.bios:.near)
                      00001d70    00000018              : knl_exit.o54 (.bios)
                      00001d88    00000073              : knl_run.o54 (.bios)
                      00001dfb    00000028              : knl_chec.o54 (.bios:.near)
                      00001e23    0000003d              : knl_swit.o54 (.bios)
                      00001e60    0000000f              : knl_swit.o54 (.bios:.near)
                      00001e6f    00000079              : knl_tick.o54 (.bios)
                      00001ee8    0000001f              : knl_post.o54 (.bios)
                      00001f07    00000021              : knl_ipos.o54 (.bios)
                      00001f28    0000006e              : mbx.o54 (.bios)
                      00001f96    0000007c              : mbx_crea.o54 (.bios)
                      00002012    00000045              : mbx_dele.o54 (.bios)
                      00002057    0000009a              : mem_allo.o54 (.bios:.near)
                      000020f1    0000009f              : mem_free.o54 (.bios:.near)
                      00002190    00000063              : mem_init.o54 (.bios:.near)
                      000021f3    0000002e              : mem_vall.o54 (.bios:.near)
                      00002221    00000036              : mem_rom.o54 (.bios:.near)
                      00002257    00000010              : mem_rom.o54 (.bios:.wrap)
                      00002267    0000002c              : obj_crea.o54 (.bios)
                      00002293    00000032              : obj_dele.o54 (.bios)
                      000022c5    00000001              : obj_init.o54 (.bios)
                      000022c6    00000030              : que_get.o54 (.bios)
                      000022f6    00000023              : sem_crea.o54 (.bios)
                      00002319    0000000b              : sem_dele.o54 (.bios)
                      00002324    00000061              : sem_dopo.o54 (.bios)
                      00002385    00000005              : sem_ipos.o54 (.bios)
                      0000238a    00000035              : sem_post_asm.o5 (.bios)
                      000023bf    0000000c              : sem_post.o54 (.bios)
                      000023cb    0000004f              : sem_pend_asm.o5 (.bios)
                      0000241a    0000008e              : sem_pend.o54 (.bios)
                      000024a8    0000000b              : swi_post.o54 (.bios:.wrap)
                      000024b3    00000017              : sys_erro.o54 (.bios:.near)
                      000024ca    0000000a              : sys_asm.o54 (.bios:.near)
                      000024d4    00000069              : tsk_exit.o54 (.bios)
                      0000253d    00000027              : sys_exit.o54 (.bios)
                      00002564    0000001d              : tsk_init.o54 (.bios)
                      00002581    00000054              : tsk_setu.o54 (.bios)
                      000025d5    0000003a              : tsk_stup.o54 (.bios)
                      0000260f    0000003d              : lck.o54 (.bios)
                      0000264c    00000042              : atm.o54 (.bios)
                      0000268e    00000005              : clk_countspms.o (.bios:.wrap)
                      00002693    00000004              : clk_getprd.o54 (.bios:.wrap)
                      00002697    00000001              : fxn_c.o54 (.bios)
                      00002698    00000010              : hwi_c.o54 (.bios:.wrap)
                      000026a8    0000000e              : idl_c.o54 (.bios:.wrap)
                      000026b6    0000002e              : prd_c.o54 (.bios:.wrap)
                      000026e4    00000034              : prd_tick.o54 (.bios:.near)
                      00002718    0000003d              : hwi_disp.o54 (.bios)
                      00002755    00000030              : c54_asm.o54 (.bios)
                      00002785    0000016f              : hwi_disp_asm.o5 (.bios:.norptb)
                      000028f4    000000e9              : malloc.o54 (.bios)

    .cinit     0    000029dd    000004e6    
                      000029dd    000000bf     dsi6coders.obj (.cinit)
                      00002a9c    00000138     dsi6coderscfg.obj (.cinit)
                      00002bd4    00000005     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.cinit)
                      00002bd9    00000009     hwb_hwassembly.lib : hwb_codeuronbus.obj (.cinit)
                      00002be2    00000003     sac_sensor.lib : sac_manager.obj (.cinit)
                      00002be5    00000003     u_util.lib : u_extrapolation.obj (.cinit)
                      00002be8    000000c1     bios.a54 : biosdata.o54 (.cinit)
                      00002ca9    0000005a              : knl.o54 (.cinit)
                      00002d03    00000003              : knl_swit.o54 (.cinit)
                      00002d06    00000006              : knl_tick.o54 (.cinit)
                      00002d0c    00000003              : mbx_crea.o54 (.cinit)
                      00002d0f    00000009              : obj_init.o54 (.cinit)
                      00002d18    00000003              : sem_crea.o54 (.cinit)
                      00002d1b    00000018              : tsk.o54 (.cinit)
                      00002d33    00000006              : sys.o54 (.cinit)
                      00002d39    0000000b              : tsk_stup.o54 (.cinit)
                      00002d44    00000004              : hwi_disp.o54 (.cinit)
                      00002d48    000000b6     csl5402.lib : csl_csldat.obj (.cinit)
                      00002dfe    00000003     rts.lib : vars.obj (.cinit)
                      00002e01    00000006             : _lock.obj (.cinit)
                      00002e07    00000091             : defs.obj (.cinit)
                      00002e98    00000009             : exit.obj (.cinit)
                      00002ea1    0000001e             : lowlev.obj (.cinit)
                      00002ebf    00000003             : sinit.obj (.cinit)
                      00002ec2    00000001     --HOLE-- [fill = 0]

    .sysinit   0    00002ec3    000000e4    
                      00002ec3    0000007d     dsi6coderscfg.obj (.sysinit)
                      00002f40    00000067     bios.a54 : boot.o54 (.sysinit)

    .switch    0    00002fa7    0000003d    
                      00002fa7    0000000b     hw_hardware.lib : hw_dsip3pflash.obj (.switch)
                      00002fb2    00000029     sac_sensor.lib : sac_command.obj (.switch)
                      00002fdb    00000009     rts.lib : error.obj (.switch)

    .gblinit   0    00002fe4    00000013    
                      00002fe4    00000013     dsi6coderscfg.obj (.gblinit)

    SECTION_HWA_RT
    *          0    00002ff7    00000359    
                      00002ff7    0000015d     hw_hardware.lib : hw_coder.obj (SECTION_HWA_RT)
                      00003154    00000070     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (SECTION_HWA_RT)
                      000031c4    00000070                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_RT)
                      00003234    000000be     das_asynchrone.lib : das_driver.obj (SECTION_HWA_RT)
                      000032f2    0000005e                        : das_spliter.obj (SECTION_HWA_RT)

    SECTION_DSI_RT
    *          0    00003350    0000034b    
                      00003350    0000034b     dsi6coders.obj (SECTION_DSI_RT)

    SECTION_HW_RT
    *          0    0000369b    000002e0    
                      0000369b    000000d1     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_RT)
                      0000376c    00000007                     : _hw_dma.obj (SECTION_HW_RT)
                      00003773    0000013c                     : hw_busslave.obj (SECTION_HW_RT)
                      000038af    00000007                     : hw_mcbsp.obj (SECTION_HW_RT)
                      000038b6    000000c5                     : _hw_busslavehsm.obj (SECTION_HW_RT)

    SECTION_HWB_RT
    *          0    0000397b    00000263    
                      0000397b    00000263     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_RT)

    SECTION_DAS_RT
    *          0    00003bde    0000016a    
                      00003bde    0000016a     das_asynchrone.lib : das_driver.obj (SECTION_DAS_RT)

    SECTION_EV_RT
    *          0    00003d48    0000004a    
                      00003d48    0000004a     ev_evtman.lib : ev_logger.obj (SECTION_EV_RT)

    SECTION_S_RT
    *          0    00003d92    00000001    
                      00003d92    00000001     s_system.lib : s_functionpointer.obj (SECTION_S_RT)

    SECTION_HAL_ENDAT_TSK
    *          0    00003d93    00000245    
                      00003d93    00000245     hal_hwabs.lib : hal_endat.obj (SECTION_HAL_ENDAT_TSK)

    SECTION_EV_CTOR
    *          0    00003fd8    00000028    
                      00003fd8    00000028     ev_evtman.lib : ev_logger.obj (SECTION_EV_CTOR)

    frt        0    00004000    00000000     UNINITIALIZED

    .pinit     0    00004000    00000006    
                      00004000    00000001     dsi6coders.obj (.pinit)
                      00004001    00000001     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.pinit)
                      00004002    00000001                        : hwa_physicalbusdevice.obj (.pinit)
                      00004003    00000001     s_system.lib : s_defs.obj (.pinit)
                      00004004    00000002     --HOLE-- [fill = 0]

    .trcdata   0    00004006    00000002    
                      00004006    00000002     dsi6coderscfg.obj (.trcdata)

    SECTION_HW_CTOR
    *          0    00004008    00000652    
                      00004008    00000257     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_CTOR)
                      0000425f    0000003e                     : _hw_dma.obj (SECTION_HW_CTOR)
                      0000429d    000000f3                     : hw_busslave.obj (SECTION_HW_CTOR)
                      00004390    00000019                     : hw_calibration.obj (SECTION_HW_CTOR)
                      000043a9    00000043                     : hw_coder.obj (SECTION_HW_CTOR)
                      000043ec    000001bc                     : hw_dsip3_fpga.obj (SECTION_HW_CTOR)
                      000045a8    0000003e                     : hw_mcbsp.obj (SECTION_HW_CTOR)
                      000045e6    0000002e                     : hw_thermo.obj (SECTION_HW_CTOR)
                      00004614    0000001e                     : hw_dsip3pflash.obj (SECTION_HW_CTOR)
                      00004632    00000028                     : _hw_busslavehsm.obj (SECTION_HW_CTOR)

    SECTION_HW_TSK
    *          0    0000465a    0000059b    
                      0000465a    000000b9     hal_hwabs.lib : hal_pflash.obj (SECTION_HW_TSK)
                      00004713    000001bb     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_TSK)
                      000048ce    0000011a                     : hw_calibration.obj (SECTION_HW_TSK)
                      000049e8    000000ee                     : hw_dsip3_fpga.obj (SECTION_HW_TSK)
                      00004ad6    0000011f                     : hw_dsip3pflash.obj (SECTION_HW_TSK)

    SECTION_SAC_TSK
    *          0    00004bf5    00000321    
                      00004bf5    00000321     sac_sensor.lib : sac_manager.obj (SECTION_SAC_TSK)

    SECTION_HWA_TSK
    *          0    00004f16    000002ed    
                      00004f16    00000010     hw_hardware.lib : hw_coder.obj (SECTION_HWA_TSK)
                      00004f26    00000010                     : hw_thermo.obj (SECTION_HWA_TSK)
                      00004f36    00000123     hwa_hwassembly.lib : hwa_evbusclientslave.obj (SECTION_HWA_TSK)
                      00005059    00000036                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_TSK)
                      0000508f    00000174                        : hwa_physicalbusdevice.obj (SECTION_HWA_TSK)

    SECTION_HWA_CTOR
    *          0    00005203    000002e9    
                      00005203    00000043     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (SECTION_HWA_CTOR)
                      00005246    0000003f                        : hwa_busdeviceasynchroslave.obj (SECTION_HWA_CTOR)
                      00005285    00000045                        : hwa_busdevicesynchro.obj (SECTION_HWA_CTOR)
                      000052ca    0000001e                        : hwa_evbusclientslave.obj (SECTION_HWA_CTOR)
                      000052e8    00000059                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_CTOR)
                      00005341    00000054                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_CTOR)
                      00005395    00000059                        : hwa_busdevice.obj (SECTION_HWA_CTOR)
                      000053ee    00000047                        : hwa_communication.obj (SECTION_HWA_CTOR)
                      00005435    000000b7                        : hwa_physicalbusdevice.obj (SECTION_HWA_CTOR)

    SECTION_HAL_CTOR
    *          0    000054ec    00000189    
                      000054ec    00000038     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_CTOR)
                      00005524    0000002d                   : hal_pflash.obj (SECTION_HAL_CTOR)
                      00005551    00000082                   : hal_coderinterface.obj (SECTION_HAL_CTOR)
                      000055d3    0000002f                   : hal_dsifpga.obj (SECTION_HAL_CTOR)
                      00005602    0000005d                   : hal_termointerface.obj (SECTION_HAL_CTOR)
                      0000565f    00000016                   : hal_thermo.obj (SECTION_HAL_CTOR)

    SECTION_DSI_CTOR
    *          0    00005675    00000131    
                      00005675    00000131     dsi6coders.obj (SECTION_DSI_CTOR)

    SECTION_S_CTOR
    *          0    000057a6    000000df    
                      000057a6    0000002c     s_system.lib : s_functionpointer.obj (SECTION_S_CTOR)
                      000057d2    00000041                  : s_mbx.obj (SECTION_S_CTOR)
                      00005813    00000072                  : s_sem.obj (SECTION_S_CTOR)

    SECTION_U_CTOR
    *          0    00005885    000000d1    
                      00005885    00000082     u_util.lib : u_bufferseg.obj (SECTION_U_CTOR)
                      00005907    0000004f                : u_speedcalc.obj (SECTION_U_CTOR)

    SECTION_DSI_TSK
    *          0    00005956    000000ac    
                      00005956    000000ac     dsi6coders.obj (SECTION_DSI_TSK)

    SECTION_DAS_CTOR
    *          0    00005a02    00000066    
                      00005a02    00000036     das_asynchrone.lib : das_driver.obj (SECTION_DAS_CTOR)
                      00005a38    00000030                        : das_spliter.obj (SECTION_DAS_CTOR)

    SECTION_HWB_CTOR
    *          0    00005a68    00000061    
                      00005a68    00000061     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_CTOR)

    SECTION_S_TSK
    *          0    00005ac9    00000045    
                      00005ac9    00000002     s_system.lib : s_assert.obj (SECTION_S_TSK)
                      00005acb    00000043                  : s_functionpointer.obj (SECTION_S_TSK)

    SECTION_EV_TSK
    *          0    00005b0e    0000002f    
                      00005b0e    0000002f     ev_evtman.lib : ev_logger.obj (SECTION_EV_TSK)

    SECTION_HAL_TSK
    *          0    00005b3d    0000001b    
                      00005b3d    0000001b     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_TSK)

    .TSK_BusLed$stk
    *          1    00000000    00000058     UNINITIALIZED
                      00000000    00000058     dsi6coderscfg.obj (.TSK_BusLed$stk)

    .tsk       1    00000000    00000078     UNINITIALIZED
                      00000000    00000078     dsi6coderscfg.obj (.tsk)

    .TSK_async0$stk
    *          1    00000000    000000d0     UNINITIALIZED
                      00000000    000000d0     dsi6coderscfg.obj (.TSK_async0$stk)

    .TSK_async1$stk
    *          1    00000000    000000d0     UNINITIALIZED
                      00000000    000000d0     dsi6coderscfg.obj (.TSK_async1$stk)

    .TSK_async2$stk
    *          1    00000000    000000d0     UNINITIALIZED
                      00000000    000000d0     dsi6coderscfg.obj (.TSK_async2$stk)

    .const     1    00000000    00000466    
                      00000000    00000034     rts.lib : _printfi.obj (.const)
                      00000034    00000008             : fcvt.obj (.const)
                      0000003c    00000008             : ecvt.obj (.const)
                      00000044    000001a3             : error.obj (.const)
                      000001e7    00000101             : ctype.obj (.const)
                      000002e8    00000028     hw_hardware.lib : hw_endat.obj (.const)
                      00000310    00000024     hwa_hwassembly.lib : hwa_physicalbusdevice.obj (.const)
                      00000334    00000024     hw_hardware.lib : hw_dsip3_fpga.obj (.const)
                      00000358    0000001a     datetime.obj (.const)
                      00000372    00000015     dsi6coders.obj (.const)
                      00000387    00000014     hal_hwabs.lib : hal_endat.obj (.const)
                      0000039b    00000012                   : hal_dsifpga.obj (.const)
                      000003ad    00000010     hwa_hwassembly.lib : hwa_physicalbusdeviceslavebus.obj (.const)
                      000003bd    00000010     hw_hardware.lib : hw_coder.obj (.const)
                      000003cd    00000010     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.const)
                      000003dd    00000010     hw_hardware.lib : hw_dsip3pflash.obj (.const)
                      000003ed    00000010     hal_hwabs.lib : hal_coder.obj (.const)
                      000003fd    00000010                   : hal_pflash.obj (.const)
                      0000040d    0000000c     sac_sensor.lib : sac_manager.obj (.const)
                      00000419    0000000a     hwa_hwassembly.lib : hwa_busdevice.obj (.const)
                      00000423    00000008                        : hwa_evbusclientslave.obj (.const)
                      0000042b    00000006                        : hwa_busdevicesynchro.obj (.const)
                      00000431    00000006                        : hwa_busdeviceasynchroslave.obj (.const)
                      00000437    00000006     hwb_hwassembly.lib : hwb_codeuronbus.obj (.const)
                      0000043d    00000006     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (.const)
                      00000443    00000004     bios.a54 : mem_free.o54 (.const)
                      00000447    00000004     hw_hardware.lib : hw_thermo.obj (.const)
                      0000044b    00000004     hal_hwabs.lib : hal_coderinterface.obj (.const)
                      0000044f    00000004     sac_sensor.lib : sac_command.obj (.const)
                      00000453    00000004     s_system.lib : s_functionpointer.obj (.const)
                      00000457    00000004     hal_hwabs.lib : hal_termointerface.obj (.const)
                      0000045b    00000004     bios.a54 : mem_allo.o54 (.const)
                      0000045f    00000004     hal_hwabs.lib : hal_thermo.obj (.const)
                      00000463    00000002     rts.lib : fputs.obj (.const)
                      00000465    00000001     bios.a54 : tsk.o54 (.const)

    .sysregs   1    0000007c    00000004    
                      0000007c    00000004     bios.a54 : biosdata.o54 (.sysregs)

    .clk       1    00000100    00000000     UNINITIALIZED

    .prd       1    00000100    00000000     UNINITIALIZED

    .far       1    00000100    00000000     UNINITIALIZED

    .pip       1    00000100    00000000     UNINITIALIZED

    .data      1    00000100    00000000     UNINITIALIZED

    .LOG_system$buf
    *          1    00000100    00000000     UNINITIALIZED

    .gio       1    00000100    00000000     UNINITIALIZED

    .hst       1    00000100    00000000     UNINITIALIZED

    .dsm       1    00000100    00000000     UNINITIALIZED

    .bss       1    00000100    000009bb     UNINITIALIZED
                      00000100    00000319     dsi6coders.obj (.bss)
                      00000419    00000001     bios.a54 : sem_crea.o54 (.bss)
                      0000041a    00000080              : hwi_disptab.o54 (.bss)
                      0000049a    0000001d     dsi6coderscfg.obj (.bss)
                      000004b7    00000001     bios.a54 : mbx_crea.o54 (.bss)
                      000004b8    00000001              : mem_asm.o54 (.bss)
                      000004b9    000001cd     rts.lib : defs.obj (.bss)
                      00000686    00000190             : _printfi.obj (.bss)
                      00000816    000000d0             : trgdrv.obj (.bss)
                      000008e6    00000064             : ecvt.obj (.bss)
                      0000094a    00000064             : fcvt.obj (.bss)
                      000009ae    0000005c             : lowlev.obj (.bss)
                      00000a0a    00000048     bios.a54 : knl.o54 (.bss)
                      00000a52    00000023     rts.lib : exit.obj (.bss)
                      00000a75    00000010     bios.a54 : tsk.o54 (.bss)
                      00000a85    0000000a              : sys.o54 (.bss)
                      00000a8f    00000009              : tsk_stup.o54 (.bss)
                      00000a98    00000007              : obj_init.o54 (.bss)
                      00000a9f    00000004              : knl_tick.o54 (.bss)
                      00000aa3    00000004     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.bss)
                      00000aa7    00000003     s_system.lib : s_defs.obj (.bss)
                      00000aaa    00000003     sac_sensor.lib : sac_manager.obj (.bss)
                      00000aad    00000003     hwa_hwassembly.lib : hwa_physicalbusdevice.obj (.bss)
                      00000ab0    00000003     hwb_hwassembly.lib : hwb_codeuronbus.obj (.bss)
                      00000ab3    00000002     rts.lib : _lock.obj (.bss)
                      00000ab5    00000002     bios.a54 : hwi_disp.o54 (.bss)
                      00000ab7    00000001     rts.lib : vars.obj (.bss)
                      00000ab8    00000001     u_util.lib : u_extrapolation.obj (.bss)
                      00000ab9    00000001     rts.lib : sinit.obj (.bss)
                      00000aba    00000001     bios.a54 : gbl_cslinit54.o (.bss)

    .stack     1    00000abb    00000820    
                      00000abb    00000820     --HOLE-- [fill = beef]

    .IDATA$heap
    *          1    000012db    00000500     UNINITIALIZED

    .swi       1    000017db    0000000c     UNINITIALIZED
                      000017db    0000000c     dsi6coderscfg.obj (.swi)

    .sts       1    000017e7    00000008    
                      000017e7    00000008     dsi6coderscfg.obj (.sts)

    .log       1    000017ef    00000006    
                      000017ef    00000006     dsi6coderscfg.obj (.log)

    .mem       1    000017f5    00000001     UNINITIALIZED
                      000017f5    00000001     dsi6coderscfg.obj (.mem)

    .sys       1    000017f6    00000004     UNINITIALIZED
                      000017f6    00000004     dsi6coderscfg.obj (.sys)

    .args      1    000017fa    00000004    
                      000017fa    00000004     --HOLE-- [fill = 0000]

    .idl       1    000017fe    00000002     UNINITIALIZED
                      000017fe    00000001     dsi6coderscfg.obj (.idl)
                      000017ff    00000001     dsi6coderscfg.obj (.idlcal)

    .cio       1    00001800    00000120     UNINITIALIZED
                      00001800    00000120     rts.lib : ldmsg.obj (.cio)

    .TSK_idle$stk
    *          1    00001920    00000058     UNINITIALIZED
                      00001920    00000058     dsi6coderscfg.obj (.TSK_idle$stk)

    .sysdata   1    00001980    0000005b     UNINITIALIZED
                      00001980    0000005b     bios.a54 : biosdata.o54 (.sysdata)

    .csldata   1    000019dc    000000b4     UNINITIALIZED
                      000019dc    000000b4     csl5402.lib : csl_csldat.obj (.csldata)

     

    Thank for your help !

     

  • A couple of quick things: the compiler versions you are using are C5400 CGT 3.83 for CCS 2.0 and C5400 CGT 4.1.0 (not 5.1.0) for CCS 3.1.  You've actually got unwanted code for fprintf(); printf() is not included.

    One can't figure this out from the map file alone, but there is a call to fprintf() in the RTS itself.  When you use array new/delete (and certain other C++ features), the RTS needs to arrange to emit error messages at run time just in case you hit certain catastrophic errors.  In such cases, the compiler calls an internal function __abort_execution(), which eventually results in a call to fprintf(), dragging in all the printf family internals.  C++ requires this message, but the 3.83 library did not support it.

    There is no option to disable this error message support; there are various workarounds such as not using array new/delete, providing your own version of fprintf, or altering the source of the RTS.  Perhaps someone has a better workaround?

  • Hi all,

    Thank for your help, I found a solution.
    The printf was add by the rts.lib with CCS3.1 and was not with CCS2.0.

    So I removed the rts.lib at all and I manually add all functions I need (new, delete, memcpy, mdiv, lmpy, ...)

    Now no more unwanted code : Yes !
    I think TI could optimize the linker...

    Thanks again !
    Olivier

     

    For your information, the new map file:

    ******************************************************************************
             TMS320C54x COFF Linker PC v4.1.0                     
    ******************************************************************************
    >> Linked Fri Jul 16 17:03:24 2010

    OUTPUT FILE NAME:   <../C5402/release/dsi6coders.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 00002c6a


    MEMORY CONFIGURATION

                      name            origin    length      used    attr    fill
             ----------------------  --------  ---------  --------  ----  --------
    PAGE  0: VECT                    00000080   00000080  00000080  RWIX
             IPROG                   00001947   0000248d  00002488  RWIX
             EPROG                   00003dd4   0000422b  00004229  RWIX

    PAGE  1: USERREGS                00000060   0000001a  00000000  RWIX
             CSLREGS                 0000007a   00000002  00000000  RWIX
             BIOSREGS                0000007c   00000004  00000004  RWIX
             IDATA                   00000100   00001840  000017d1  RWIX
             FLASHEDATA              00008000   00007000  00000400  RWIX


    SECTION ALLOCATION MAP

     output                                  attributes/
    section   page    origin      length       input sections
    --------  ----  ----------  ----------   ----------------
    SECTION_HAL_TSK
    *          0    00000000    0000001b    
                      00000000    0000001b     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_TSK)

    SECTION_EV_CTOR
    *          0    00000000    00000028    
                      00000000    00000028     ev_evtman.lib : ev_logger.obj (SECTION_EV_CTOR)

    SECTION_S_TSK
    *          0    00000000    00000045    
                      00000000    00000002     s_system.lib : s_assert.obj (SECTION_S_TSK)
                      00000002    00000043                  : s_functionpointer.obj (SECTION_S_TSK)

    SECTION_HWB_CTOR
    *          0    00000000    00000061    
                      00000000    00000061     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_CTOR)

    .hwi_vec   0    00000080    00000080    
                      00000080    00000080     dsi6coderscfg.obj (.hwi_vec)

    .hwi       0    00001947    00000000     UNINITIALIZED

    .bios      0    00001947    00000e64    
                      00001947    00000001     bios.a54 : clk_rete.o54 (.bios:.near)
                      00001948    0000000e              : fxn.o54 (.bios:.near)
                      00001956    00000001              : gbl_chip.o54 (.bios:.near)
                      00001957    00000015              : gbl_cslinit54.o (.bios)
                      0000196c    00000003              : gbl_vers.o54 (.bios:.near)
                      0000196f    00000018              : idl.o54 (.bios:.near)
                      00001987    00000027              : sts.o54 (.bios:.near)
                      000019ae    000001e0              : swi.o54 (.bios:.near)
                      00001b8e    00000045              : clk.o54 (.bios:.near)
                      00001bd3    0000002e              : fxn_exec.o54 (.bios:.near)
                      00001c01    00000026              : log.o54 (.bios:.near)
                      00001c27    00000018              : knl_exit.o54 (.bios)
                      00001c3f    00000073              : knl_run.o54 (.bios)
                      00001cb2    00000028              : knl_chec.o54 (.bios:.near)
                      00001cda    0000003d              : knl_swit.o54 (.bios)
                      00001d17    0000000f              : knl_swit.o54 (.bios:.near)
                      00001d26    00000079              : knl_tick.o54 (.bios)
                      00001d9f    0000001f              : knl_post.o54 (.bios)
                      00001dbe    00000021              : knl_ipos.o54 (.bios)
                      00001ddf    0000006e              : mbx.o54 (.bios)
                      00001e4d    0000007c              : mbx_crea.o54 (.bios)
                      00001ec9    00000045              : mbx_dele.o54 (.bios)
                      00001f0e    0000009a              : mem_allo.o54 (.bios:.near)
                      00001fa8    0000009f              : mem_free.o54 (.bios:.near)
                      00002047    00000063              : mem_init.o54 (.bios:.near)
                      000020aa    0000002e              : mem_vall.o54 (.bios:.near)
                      000020d8    00000036              : mem_rom.o54 (.bios:.near)
                      0000210e    00000010              : mem_rom.o54 (.bios:.wrap)
                      0000211e    0000002c              : obj_crea.o54 (.bios)
                      0000214a    00000032              : obj_dele.o54 (.bios)
                      0000217c    00000001              : obj_init.o54 (.bios)
                      0000217d    00000030              : que_get.o54 (.bios)
                      000021ad    00000023              : sem_crea.o54 (.bios)
                      000021d0    0000000b              : sem_dele.o54 (.bios)
                      000021db    00000061              : sem_dopo.o54 (.bios)
                      0000223c    00000005              : sem_ipos.o54 (.bios)
                      00002241    00000035              : sem_post_asm.o5 (.bios)
                      00002276    0000000c              : sem_post.o54 (.bios)
                      00002282    0000004f              : sem_pend_asm.o5 (.bios)
                      000022d1    0000008e              : sem_pend.o54 (.bios)
                      0000235f    0000000b              : swi_post.o54 (.bios:.wrap)
                      0000236a    00000017              : sys_erro.o54 (.bios:.near)
                      00002381    0000000a              : sys_asm.o54 (.bios:.near)
                      0000238b    00000069              : tsk_exit.o54 (.bios)
                      000023f4    00000027              : sys_exit.o54 (.bios)
                      0000241b    0000001d              : tsk_init.o54 (.bios)
                      00002438    00000054              : tsk_setu.o54 (.bios)
                      0000248c    0000003a              : tsk_stup.o54 (.bios)
                      000024c6    0000003d              : lck.o54 (.bios)
                      00002503    00000042              : atm.o54 (.bios)
                      00002545    00000005              : clk_countspms.o (.bios:.wrap)
                      0000254a    00000004              : clk_getprd.o54 (.bios:.wrap)
                      0000254e    00000001              : fxn_c.o54 (.bios)
                      0000254f    00000010              : hwi_c.o54 (.bios:.wrap)
                      0000255f    0000000e              : idl_c.o54 (.bios:.wrap)
                      0000256d    0000002e              : prd_c.o54 (.bios:.wrap)
                      0000259b    00000034              : prd_tick.o54 (.bios:.near)
                      000025cf    0000003d              : hwi_disp.o54 (.bios)
                      0000260c    00000030              : c54_asm.o54 (.bios)
                      0000263c    0000016f              : hwi_disp_asm.o5 (.bios:.norptb)

    .cinit     0    000027ab    00000442    
                      000027ab    000000c7     dsi6coders.obj (.cinit)
                      00002872    00000138     dsi6coderscfg.obj (.cinit)
                      000029aa    00000009     exit.obj (.cinit)
                      000029b3    00000006     log.obj (.cinit)
                      000029b9    00000003     memory.obj (.cinit)
                      000029bc    00000003     sinit.obj (.cinit)
                      000029bf    00000003     hw_hardware.lib : hw_busslave.obj (.cinit)
                      000029c2    00000005     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.cinit)
                      000029c7    00000009     hwb_hwassembly.lib : hwb_codeuronbus.obj (.cinit)
                      000029d0    00000003     sac_sensor.lib : sac_manager.obj (.cinit)
                      000029d3    00000003     u_util.lib : u_extrapolation.obj (.cinit)
                      000029d6    000000c1     bios.a54 : biosdata.o54 (.cinit)
                      00002a97    0000005a              : knl.o54 (.cinit)
                      00002af1    00000003              : knl_swit.o54 (.cinit)
                      00002af4    00000006              : knl_tick.o54 (.cinit)
                      00002afa    00000003              : mbx_crea.o54 (.cinit)
                      00002afd    00000009              : obj_init.o54 (.cinit)
                      00002b06    00000003              : sem_crea.o54 (.cinit)
                      00002b09    00000018              : tsk.o54 (.cinit)
                      00002b21    00000006              : sys.o54 (.cinit)
                      00002b27    0000000b              : tsk_stup.o54 (.cinit)
                      00002b32    00000004              : hwi_disp.o54 (.cinit)
                      00002b36    000000b6     csl5402.lib : csl_csldat.obj (.cinit)
                      00002bec    00000001     --HOLE-- [fill = 0]

    .sysinit   0    00002bed    000000e4    
                      00002bed    0000007d     dsi6coderscfg.obj (.sysinit)
                      00002c6a    00000067     bios.a54 : boot.o54 (.sysinit)

    .switch    0    00002cd1    0000003d    
                      00002cd1    0000000c     hw_hardware.lib : hw_dsip3pflash.obj (.switch)
                      00002cdd    00000031     sac_sensor.lib : sac_command.obj (.switch)

    .gblinit   0    00002d0e    00000013    
                      00002d0e    00000013     dsi6coderscfg.obj (.gblinit)

    SECTION_DSI_RT
    *          0    00002d21    000003a1    
                      00002d21    000003a1     dsi6coders.obj (SECTION_DSI_RT)

    SECTION_HWA_RT
    *          0    000030c2    000003a0    
                      000030c2    000001a4     hw_hardware.lib : hw_coder.obj (SECTION_HWA_RT)
                      00003266    00000070     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (SECTION_HWA_RT)
                      000032d6    00000070                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_RT)
                      00003346    000000be     das_asynchrone.lib : das_driver.obj (SECTION_HWA_RT)
                      00003404    0000005e                        : das_spliter.obj (SECTION_HWA_RT)

    SECTION_HW_RT
    *          0    00003462    00000314    
                      00003462    000000d1     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_RT)
                      00003533    00000007                     : _hw_dma.obj (SECTION_HW_RT)
                      0000353a    00000170                     : hw_busslave.obj (SECTION_HW_RT)
                      000036aa    00000007                     : hw_mcbsp.obj (SECTION_HW_RT)
                      000036b1    000000c5                     : _hw_busslavehsm.obj (SECTION_HW_RT)

    SECTION_HWB_RT
    *          0    00003776    0000026a    
                      00003776    0000026a     hwb_hwassembly.lib : hwb_codeuronbus.obj (SECTION_HWB_RT)

    SECTION_DAS_RT
    *          0    000039e0    0000016a    
                      000039e0    0000016a     das_asynchrone.lib : das_driver.obj (SECTION_DAS_RT)

    SECTION_EV_RT
    *          0    00003b4a    0000004a    
                      00003b4a    0000004a     ev_evtman.lib : ev_logger.obj (SECTION_EV_RT)

    SECTION_S_RT
    *          0    00003b94    00000001    
                      00003b94    00000001     s_system.lib : s_functionpointer.obj (SECTION_S_RT)

    SECTION_HAL_CTOR
    *          0    00003b95    0000018e    
                      00003b95    0000003d     hal_hwabs.lib : hal_coder.obj (SECTION_HAL_CTOR)
                      00003bd2    0000002d                   : hal_pflash.obj (SECTION_HAL_CTOR)
                      00003bff    00000082                   : hal_coderinterface.obj (SECTION_HAL_CTOR)
                      00003c81    0000002f                   : hal_dsifpga.obj (SECTION_HAL_CTOR)
                      00003cb0    0000005d                   : hal_termointerface.obj (SECTION_HAL_CTOR)
                      00003d0d    00000016                   : hal_thermo.obj (SECTION_HAL_CTOR)

    SECTION_DSI_TSK
    *          0    00003d23    000000ac    
                      00003d23    000000ac     dsi6coders.obj (SECTION_DSI_TSK)

    frt        0    00003dd4    00000000     UNINITIALIZED

    .text      0    00003dd4    000027bc    
                      00003dd4    0000001e     datetime.obj (.text)
                      00003df2    000003ac     dsi6coders.obj (.text)
                      0000419e    00000001     dsi6coderscfg_c.obj (.text:CSL_cfgInit)
                      0000419f    00000052     exit.obj (.text)
                      000041f1    000000a5     ldiv.obj (.text)
                      00004296    00000014     lmpy.obj (.text)
                      000042aa    00000007     log.obj (.text)
                      000042b1    0000000e     memcpy.obj (.text)
                      000042bf    0000025f     memory.obj (.text)
                      0000451e    0000000a     pure_virt.obj (.text)
                      00004528    0000002b     sinit.obj (.text)
                      00004553    0000000c     udiv.obj (.text)
                      0000455f    0000002c     hal_hwabs.lib : hal_endat.obj (.text)
                      0000458b    00000323                   : hal_filesystem.obj (.text)
                      000048ae    00000037                   : hal_pflash.obj (.text)
                      000048e5    0000000e     hw_hardware.lib : hw_calibration.obj (.text)
                      000048f3    00000050                     : hw_coder.obj (.text)
                      00004943    00000129                     : hw_dsip3.obj (.text)
                      00004a6c    00000019                     : hw_dsip3_fpga.obj (.text)
                      00004a85    00000141                     : hw_endat.obj (.text)
                      00004bc6    00000012                     : hw_thermo.obj (.text)
                      00004bd8    00000043                     : hw_dsip3pflash.obj (.text)
                      00004c1b    0000001c     hwa_hwassembly.lib : hwa_evbusclientslave.obj (.text)
                      00004c37    000000dd                        : hwa_physicalbusdeviceslave.obj (.text)
                      00004d14    000000d8                        : hwa_physicalbusdeviceslavebus.obj (.text)
                      00004dec    00000079                        : hwa_physicalbusdevice.obj (.text)
                      00004e65    0000001c     hwb_hwassembly.lib : hwb_codeuronbus.obj (.text)
                      00004e81    0000001c     s_system.lib : s_defs.obj (.text)
                      00004e9d    00000ed0     sac_sensor.lib : sac_command.obj (.text)
                      00005d6d    0000035c                    : sac_manager.obj (.text)
                      000060c9    000000f9     u_util.lib : u_extrapolation.obj (.text)
                      000061c2    0000003d                : u_speedcalc.obj (.text)
                      000061ff    00000013     ev_evtman.lib : ev_loghandler.obj (.text)
                      00006212    0000000d     csl5402.lib : _csl_init.obj (.text:_CSL_init)
                      0000621f    00000024                 : dma_close.obj (.text:DMA_close)
                      00006243    00000034                 : dma_gblcfg.obj (.text:DMA_globalConfig)
                      00006277    00000075                 : dma_open.obj (.text:DMA_open)
                      000062ec    00000081                 : dma_reset.obj (.text:DMA_reset)
                      0000636d    00000013                 : dma_stop.obj (.text:DMA_stop)
                      00006380    00000008                 : irq_gdis.obj (.text:IRQ_globalDisable)
                      00006388    00000008                 : irq_genab.obj (.text:IRQ_globalEnable)
                      00006390    0000000e                 : irq_grest.obj (.text:IRQ_globalRestore)
                      0000639e    0000001f                 : mcbsp_cls.obj (.text:MCBSP_close)
                      000063bd    00000064                 : mcbsp_open.obj (.text:MCBSP_open)
                      00006421    000000b5                 : mcbsp_rst.obj (.text:MCBSP_reset)
                      000064d6    00000073                 : tim_open.obj (.text:TIMER_open)
                      00006549    00000047                 : tim_rst.obj (.text:TIMER_reset)

    .pinit     0    00006590    00000006    
                      00006590    00000001     dsi6coders.obj (.pinit)
                      00006591    00000001     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.pinit)
                      00006592    00000001                        : hwa_physicalbusdevice.obj (.pinit)
                      00006593    00000001     s_system.lib : s_defs.obj (.pinit)
                      00006594    00000002     --HOLE-- [fill = 0]

    .trcdata   0    00006596    00000002    
                      00006596    00000002     dsi6coderscfg.obj (.trcdata)

    SECTION_HW_CTOR
    *          0    00006598    00000655    
                      00006598    00000257     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_CTOR)
                      000067ef    0000003e                     : _hw_dma.obj (SECTION_HW_CTOR)
                      0000682d    000000f6                     : hw_busslave.obj (SECTION_HW_CTOR)
                      00006923    00000019                     : hw_calibration.obj (SECTION_HW_CTOR)
                      0000693c    00000043                     : hw_coder.obj (SECTION_HW_CTOR)
                      0000697f    000001bc                     : hw_dsip3_fpga.obj (SECTION_HW_CTOR)
                      00006b3b    0000003e                     : hw_mcbsp.obj (SECTION_HW_CTOR)
                      00006b79    0000002e                     : hw_thermo.obj (SECTION_HW_CTOR)
                      00006ba7    0000001e                     : hw_dsip3pflash.obj (SECTION_HW_CTOR)
                      00006bc5    00000028                     : _hw_busslavehsm.obj (SECTION_HW_CTOR)

    SECTION_HW_TSK
    *          0    00006bed    0000059b    
                      00006bed    000000b9     hal_hwabs.lib : hal_pflash.obj (SECTION_HW_TSK)
                      00006ca6    000001bb     hw_hardware.lib : _hw_busslaveconfig.obj (SECTION_HW_TSK)
                      00006e61    0000011a                     : hw_calibration.obj (SECTION_HW_TSK)
                      00006f7b    000000ee                     : hw_dsip3_fpga.obj (SECTION_HW_TSK)
                      00007069    0000011f                     : hw_dsip3pflash.obj (SECTION_HW_TSK)

    SECTION_HWA_TSK
    *          0    00007188    000002ed    
                      00007188    00000010     hw_hardware.lib : hw_coder.obj (SECTION_HWA_TSK)
                      00007198    00000010                     : hw_thermo.obj (SECTION_HWA_TSK)
                      000071a8    00000123     hwa_hwassembly.lib : hwa_evbusclientslave.obj (SECTION_HWA_TSK)
                      000072cb    00000036                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_TSK)
                      00007301    00000174                        : hwa_physicalbusdevice.obj (SECTION_HWA_TSK)

    SECTION_HWA_CTOR
    *          0    00007475    000002e9    
                      00007475    00000043     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (SECTION_HWA_CTOR)
                      000074b8    0000003f                        : hwa_busdeviceasynchroslave.obj (SECTION_HWA_CTOR)
                      000074f7    00000045                        : hwa_busdevicesynchro.obj (SECTION_HWA_CTOR)
                      0000753c    0000001e                        : hwa_evbusclientslave.obj (SECTION_HWA_CTOR)
                      0000755a    00000059                        : hwa_physicalbusdeviceslave.obj (SECTION_HWA_CTOR)
                      000075b3    00000054                        : hwa_physicalbusdeviceslavebus.obj (SECTION_HWA_CTOR)
                      00007607    00000059                        : hwa_busdevice.obj (SECTION_HWA_CTOR)
                      00007660    00000047                        : hwa_communication.obj (SECTION_HWA_CTOR)
                      000076a7    000000b7                        : hwa_physicalbusdevice.obj (SECTION_HWA_CTOR)

    SECTION_SAC_TSK
    *          0    0000775e    000002d5    
                      0000775e    000002d5     sac_sensor.lib : sac_manager.obj (SECTION_SAC_TSK)

    SECTION_HAL_ENDAT_TSK
    *          0    00007a33    00000256    
                      00007a33    00000256     hal_hwabs.lib : hal_endat.obj (SECTION_HAL_ENDAT_TSK)

    SECTION_DSI_CTOR
    *          0    00007c89    00000131    
                      00007c89    00000131     dsi6coders.obj (SECTION_DSI_CTOR)

    SECTION_S_CTOR
    *          0    00007dba    000000df    
                      00007dba    0000002c     s_system.lib : s_functionpointer.obj (SECTION_S_CTOR)
                      00007de6    00000041                  : s_mbx.obj (SECTION_S_CTOR)
                      00007e27    00000072                  : s_sem.obj (SECTION_S_CTOR)

    SECTION_U_CTOR
    *          0    00007e99    000000d1    
                      00007e99    00000082     u_util.lib : u_bufferseg.obj (SECTION_U_CTOR)
                      00007f1b    0000004f                : u_speedcalc.obj (SECTION_U_CTOR)

    SECTION_DAS_CTOR
    *          0    00007f6a    00000064    
                      00007f6a    00000036     das_asynchrone.lib : das_driver.obj (SECTION_DAS_CTOR)
                      00007fa0    0000002e                        : das_spliter.obj (SECTION_DAS_CTOR)

    SECTION_EV_TSK
    *          0    00007fce    0000002f    
                      00007fce    0000002f     ev_evtman.lib : ev_logger.obj (SECTION_EV_TSK)

    .sysregs   1    0000007c    00000004    
                      0000007c    00000004     bios.a54 : biosdata.o54 (.sysregs)

    .clk       1    00000100    00000000     UNINITIALIZED

    .prd       1    00000100    00000000     UNINITIALIZED

    .far       1    00000100    00000000     UNINITIALIZED

    .pip       1    00000100    00000000     UNINITIALIZED

    .data      1    00000100    00000000     UNINITIALIZED

    .LOG_system$buf
    *          1    00000100    00000000     UNINITIALIZED

    .cio       1    00000100    00000000     UNINITIALIZED

    .gio       1    00000100    00000000     UNINITIALIZED

    .hst       1    00000100    00000000     UNINITIALIZED

    .dsm       1    00000100    00000000     UNINITIALIZED

    .stack     1    00000100    00000820    
                      00000100    00000820     --HOLE-- [fill = beef]

    .IDATA$heap
    *          1    00000920    000004d0     UNINITIALIZED

    .swi       1    00000df0    0000000c     UNINITIALIZED
                      00000df0    0000000c     dsi6coderscfg.obj (.swi)

    .sys       1    00000dfc    00000004     UNINITIALIZED
                      00000dfc    00000004     dsi6coderscfg.obj (.sys)

    .bss       1    00000e00    0000048e     UNINITIALIZED
                      00000e00    00000339     dsi6coders.obj (.bss)
                      00001139    00000001     bios.a54 : mbx_crea.o54 (.bss)
                      0000113a    00000080              : hwi_disptab.o54 (.bss)
                      000011ba    0000001d     dsi6coderscfg.obj (.bss)
                      000011d7    00000001     sinit.obj (.bss)
                      000011d8    00000001     bios.a54 : mem_asm.o54 (.bss)
                      000011d9    00000048              : knl.o54 (.bss)
                      00001221    00000023     exit.obj (.bss)
                      00001244    00000010     bios.a54 : tsk.o54 (.bss)
                      00001254    0000000a              : sys.o54 (.bss)
                      0000125e    00000009              : tsk_stup.o54 (.bss)
                      00001267    00000007              : obj_init.o54 (.bss)
                      0000126e    00000004     hwa_hwassembly.lib : hwa_physicalbusdeviceslave.obj (.bss)
                      00001272    00000004     bios.a54 : knl_tick.o54 (.bss)
                      00001276    00000003     memory.obj (.bss)
                      00001279    00000003     hwb_hwassembly.lib : hwb_codeuronbus.obj (.bss)
                      0000127c    00000003     s_system.lib : s_defs.obj (.bss)
                      0000127f    00000003     sac_sensor.lib : sac_manager.obj (.bss)
                      00001282    00000003     hwa_hwassembly.lib : hwa_physicalbusdevice.obj (.bss)
                      00001285    00000002     hw_hardware.lib : hw_busslave.obj (.bss)
                      00001287    00000002     bios.a54 : hwi_disp.o54 (.bss)
                      00001289    00000002     log.obj (.bss)
                      0000128b    00000001     u_util.lib : u_extrapolation.obj (.bss)
                      0000128c    00000001     bios.a54 : sem_crea.o54 (.bss)
                      0000128d    00000001              : gbl_cslinit54.o (.bss)

    .const     1    0000128e    00000187    
                      0000128e    00000025     datetime.obj (.const)
                      000012b3    00000015     dsi6coders.obj (.const)
                      000012c8    00000014     hal_hwabs.lib : hal_endat.obj (.const)
                      000012dc    00000010                   : hal_coder.obj (.const)
                      000012ec    00000010                   : hal_pflash.obj (.const)
                      000012fc    00000010     hw_hardware.lib : hw_coder.obj (.const)
                      0000130c    00000024                     : hw_dsip3_fpga.obj (.const)
                      00001330    00000028                     : hw_endat.obj (.const)
                      00001358    00000004                     : hw_thermo.obj (.const)
                      0000135c    00000010                     : hw_dsip3pflash.obj (.const)
                      0000136c    00000006     hwa_hwassembly.lib : hwa_busdeviceasynchro.obj (.const)
                      00001372    00000006                        : hwa_busdeviceasynchroslave.obj (.const)
                      00001378    00000006                        : hwa_busdevicesynchro.obj (.const)
                      0000137e    00000008                        : hwa_evbusclientslave.obj (.const)
                      00001386    00000010                        : hwa_physicalbusdeviceslave.obj (.const)
                      00001396    00000010                        : hwa_physicalbusdeviceslavebus.obj (.const)
                      000013a6    0000000a                        : hwa_busdevice.obj (.const)
                      000013b0    00000024                        : hwa_physicalbusdevice.obj (.const)
                      000013d4    00000006     hwb_hwassembly.lib : hwb_codeuronbus.obj (.const)
                      000013da    00000004     s_system.lib : s_functionpointer.obj (.const)
                      000013de    00000004     sac_sensor.lib : sac_command.obj (.const)
                      000013e2    0000000c                    : sac_manager.obj (.const)
                      000013ee    00000004     hal_hwabs.lib : hal_coderinterface.obj (.const)
                      000013f2    00000012                   : hal_dsifpga.obj (.const)
                      00001404    00000004                   : hal_termointerface.obj (.const)
                      00001408    00000004                   : hal_thermo.obj (.const)
                      0000140c    00000004     bios.a54 : mem_allo.o54 (.const)
                      00001410    00000004              : mem_free.o54 (.const)
                      00001414    00000001              : tsk.o54 (.const)

    .mem       1    00001415    00000001     UNINITIALIZED
                      00001415    00000001     dsi6coderscfg.obj (.mem)

    .TSK_idle$stk
    *          1    00001416    00000058     UNINITIALIZED
                      00001416    00000058     dsi6coderscfg.obj (.TSK_idle$stk)

    .sts       1    0000146e    00000008    
                      0000146e    00000008     dsi6coderscfg.obj (.sts)

    .log       1    00001476    00000006    
                      00001476    00000006     dsi6coderscfg.obj (.log)

    .args      1    0000147c    00000004    
                      0000147c    00000004     --HOLE-- [fill = 0000]

    .sysdata   1    00001480    0000005b     UNINITIALIZED
                      00001480    0000005b     bios.a54 : biosdata.o54 (.sysdata)

    .TSK_async0$stk
    *          1    000014dc    000000d0     UNINITIALIZED
                      000014dc    000000d0     dsi6coderscfg.obj (.TSK_async0$stk)

    .TSK_async1$stk
    *          1    000015ac    000000d0     UNINITIALIZED
                      000015ac    000000d0     dsi6coderscfg.obj (.TSK_async1$stk)

    .TSK_async2$stk
    *          1    0000167c    000000d0     UNINITIALIZED
                      0000167c    000000d0     dsi6coderscfg.obj (.TSK_async2$stk)

    .csldata   1    0000174c    000000b4     UNINITIALIZED
                      0000174c    000000b4     csl5402.lib : csl_csldat.obj (.csldata)

    .tsk       1    00001800    00000078     UNINITIALIZED
                      00001800    00000078     dsi6coderscfg.obj (.tsk)

    .TSK_BusLed$stk
    *          1    00001878    00000058     UNINITIALIZED
                      00001878    00000058     dsi6coderscfg.obj (.TSK_BusLed$stk)

    .idl       1    000018d0    00000002     UNINITIALIZED
                      000018d0    00000001     dsi6coderscfg.obj (.idl)
                      000018d1    00000001     dsi6coderscfg.obj (.idlcal)

    .sysmem    1    00008000    00000400     UNINITIALIZED

  • NETivier said:

    So I removed the rts.lib at all and I manually add all functions I need (new, delete, memcpy, mdiv, lmpy, ...)

     

    That's curious; that means that your program doesn't need array new/delete like I suspected, which means that something in the RTS that you didn't mean to call included them (or some other function which calls them).  I'd be interested to know what that was, but I can't determine this from the map files you've posted.

    I note that your map file still includes the RTS object pure_virt.obj, but that object file only contains one function, __pure_virtual_called(), which calls __abort_execution(), so I'm not sure how you're successfully linking without dragging in all of the __abort_execution() overhead.  Does your application provide its own definition of __abort_execution()?

  • Hi,

    You are right, after removing the rts.lib the linker show these undefined symbol :

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    __pure_virtual_called            C:\ccm\ccm_wa\dsp_db\dsi6coders\tmp\C5402\release\dsi6coders.obj
    __add_dtor                       C:\ccm\ccm_wa\dsp_db\dsi6coders\tmp\C5402\release\dsi6coders.obj
    operator delete(void *)          C:\ccm\ccm_wa\dsp_db\dsi6coders\tmp\C5402\release\dsi6coders.obj
    operator new(unsigned int)       C:\ccm\ccm_wa\dsp_db\product\C5402\release\hal_hwabs.lib
    L$$MPY                           C:\ccm\ccm_wa\dsp_db\product\C5402\release\hw_hardware.lib
    L$$DIVU                          C:\ccm\ccm_wa\dsp_db\product\C5402\release\hw_hardware.lib
    _memcpy                          C:\ccm\ccm_wa\dsp_db\product\C5402\release\hw_hardware.lib
    L$$MODU                          C:\ccm\ccm_wa\dsp_db\product\C5402\release\hw_hardware.lib
    I$$UDIV                          C:\ccm\ccm_wa\dsp_db\product\C5402\release\s_system.lib
    operator delete[](void *)        C:\ccm\ccm_wa\dsp_db\product\C5402\release\u_util.lib
    operator new[](unsigned int)     C:\ccm\ccm_wa\dsp_db\product\C5402\release\u_util.lib
    __register_lock                  C:/CCStudio_v3.1/C5400/bios/lib/bios.a54
    __register_unlock                C:/CCStudio_v3.1/C5400/bios/lib/bios.a54
    >>   error: symbol referencing errors - '../C5402/release/dsi6coders.out' not built

    So I added in my project the followingw files :
    array_del.cpp
    array_new.cpp
    array_nonew.cpp
    exit.c
    ldiv.asm
    lmpy.asm
    log.c
    memcpy.c
    memory.c
    pure_virt.cpp
    sinit.c
    udiv.asm

    and I comment the line
    //display_abort_message(err_code);
    in function EXTERN_C void __abort_execution(an_error_code    err_code), file pure_virt.cpp

    That's all !

    It will be fine if TI :
    - add a check box in the .CFG file editor to activate the #define DISPLAY_ABORT_DESCRIPTION (in the rts.lib)
    - or provides a rts.lib for debug and another for final application.

    Olivier

     

  • I am having the same problem with unwanted rts libraries.  How do you remove the rts.lib from the project?  I would like to try to manually add the files I need.

     

    Thanks

    Tom

  • NETivier said:
    add a check box in the .CFG file editor to activate the #define DISPLAY_ABORT_DESCRIPTION (in the rts.lib)

    This is confusing.  By our records, since 2005, DISPLAY_ABORT_DESCRIPTION has been defined in config.h like this ...

    #ifndef DISPLAY_ABORT_DESCRIPTION
    #define DISPLAY_ABORT_DESCRIPTION FALSE
    #endif /* ifndef DISPLAY_ABORT_DESCRIPTION */

    Note config.h is not a standard header file in the \include directory of the compiler distribution.  You can find it in the \lib directory, archived within rtssrc.zip.

    The point is, we fixed this problem years ago.  How can you be experiencing it now?

    Thanks and regards,

    -George