📄 adp21161fft4.ldf
字号:
ARCHITECTURE(ADSP-21161)
//
// ADSP-21161 Memory Map:
// ------------------------------------------------
// Internal memory 0x0000 0000 to 0x000f ffff
// ------------------------------------------------
// 0x0000 0000 to 0x0001 ffff IOP Regs
// Block 0 0x0002 0000 to 0x0002 1fff Long Word (64) Addresses
// 0x0002 2000 to 0x0002 7fff (reserved)
// Block 1 0x0002 8000 to 0x0002 9fff Long Word (64) Addresses
// 0x0002 a000 to 0x0003 ffff (reserved)
// Block 0 0x0004 0000 to 0x0004 3fff Normal Word (32/48) Addresses
// 0x0004 4000 to 0x0004 ffff (reserved)
// Block 1 0x0005 0000 to 0x0005 3fff Normal Word (32/48) Addresses
// 0x0005 4000 to 0x0007 ffff (reserved)
// Block 0 0x0008 0000 to 0x0008 7fff Short Word (16) Addresses
// 0x0008 8000 to 0x0009 ffff (reserved)
// Block 1 0x000a 0000 to 0x000a 7fff Short Word (16) Addresses
// 0x000a 8000 to 0x000f ffff (reserved)
// ------------------------------------------------
// Multiproc memory 0x0010 0000 to 0x007f ffff
// ------------------------------------------------
// 0x0010 0000 to 0x0011 ffff 2116x ID=001 Internal memory
// 0x0012 0000 to 0x0013 ffff 2116x ID=010 Internal memory
// 0x0014 0000 to 0x0015 ffff 2116x ID=011 Internal memory
// 0x0016 0000 to 0x0017 ffff 2116x ID=100 Internal memory
// 0x0018 0000 to 0x0019 ffff 2116x ID=101 Internal memory
// 0x001a 0000 to 0x001b ffff 2116x ID=110 Internal memory
// 0x001c 0000 to 0x001f ffff 2116x ID=all Internal memory
// ------------------------------------------------
// External memory 0x0020 0000 to 0xffff ffff
// ------------------------------------------------
//
// This architecture file allocates:
// Internal 256 words of run-time header in memory block 0
// 256 words of initialization code in memory block 0
// 6K words of C code space in memory block 0
// 6K words of C PM data space in memory block 0
// 8K words of C DM data space in memory block 1
// 4K words of C heap space in memory block 1
// 4K words of C stack space in memory block 1
#ifdef __swfa
SEARCH_DIR( $ADI_DSP\211xx\lib\swfa )
#else
SEARCH_DIR( $ADI_DSP\211xx\lib )
#endif
#ifdef _ADI_THREADS
#ifdef __ADI_LIBEH__
$LIBRARIES = libehmt.dlb, libc161mt.dlb, libiomt.dlb, libdsp160.dlb;
#else
$LIBRARIES = libc161mt.dlb, libiomt.dlb, libdsp160.dlb;
#endif
#else
#ifdef __ADI_LIBEH__
$LIBRARIES = libeh.dlb, libc161.dlb, libio.dlb, libdsp160.dlb;
#else
$LIBRARIES = libc161.dlb, libio.dlb, libdsp160.dlb;
#endif
#endif
// Libraries from the command line are included in COMMAND_LINE_OBJECTS.
#ifdef __ADI_LIBEH__
$OBJECTS = 161_hdr_adamagic.doj, $COMMAND_LINE_OBJECTS;
#else
$OBJECTS = 161_hdr.doj, $COMMAND_LINE_OBJECTS;
#endif
MEMORY
{
#ifdef __EZKIT_LICENSE_RESTRICTION_SHARC__
// Only 5K available for PM
seg_rth { TYPE(PM RAM) START(0x00040000) END(0x000400ff) WIDTH(48) }
seg_init { TYPE(PM RAM) START(0x00040100) END(0x000401ff) WIDTH(48) }
seg_pmco { TYPE(PM RAM) START(0x00040200) END(0x00040fab) WIDTH(48) }
seg_pmda { TYPE(PM RAM) START(0x00041782) END(0x00041b58) WIDTH(32) }
#else
seg_rth { TYPE(PM RAM) START(0x00040000) END(0x000400ff) WIDTH(48) }
seg_init { TYPE(PM RAM) START(0x00040100) END(0x000401ff) WIDTH(48) }
seg_pmco { TYPE(PM RAM) START(0x00040200) END(0x000419ff) WIDTH(48) }
seg_pmda { TYPE(PM RAM) START(0x00042700) END(0x00043fff) WIDTH(32) }
#endif
seg_dmda { TYPE(DM RAM) START(0x00050000) END(0x00051fff) WIDTH(32) }
seg_heap { TYPE(DM RAM) START(0x00052000) END(0x00052fff) WIDTH(32) }
seg_stak { TYPE(DM RAM) START(0x00053000) END(0x00053fff) WIDTH(32) }
}
PROCESSOR P0
{
KEEP( _main,___ctor_NULL_marker,___lib_end_of_heap_descriptions )
OUTPUT( $COMMAND_LINE_OUTPUT_FILE )
SECTIONS
{
// .text output section
seg_rth
{
INPUT_SECTIONS( $OBJECTS(seg_rth) $LIBRARIES(seg_rth))
} >seg_rth
seg_init
{
ldf_seginit_space = . ;
INPUT_SECTIONS( $OBJECTS(seg_init) $LIBRARIES(seg_init))
} >seg_init
seg_pmco
{
INPUT_SECTIONS( $OBJECTS(seg_pmco) $LIBRARIES(seg_pmco))
} >seg_pmco
seg_pmda
{
INPUT_SECTIONS( $OBJECTS(seg_pmda) $LIBRARIES(seg_pmda))
} >seg_pmda
seg_dmda
{
INPUT_SECTIONS( $OBJECTS(seg_dmda) $LIBRARIES(seg_dmda))
} > seg_dmda
#ifdef __ADI_LIBEH__
.gdt
{
INPUT_SECTIONS( $OBJECTS(.gdt) $LIBRARIES(.gdt))
} > seg_dmda
.frt
{
INPUT_SECTIONS( $OBJECTS(.frt) $LIBRARIES(.frt))
} > seg_dmda
.cht
{
INPUT_SECTIONS( $OBJECTS(.cht) $LIBRARIES(.cht))
} > seg_dmda
.edt
{
INPUT_SECTIONS( $OBJECTS(.edt) $LIBRARIES(.edt))
} > seg_dmda
#endif
stackseg
{
// allocate a stack for the application
ldf_stack_space = .;
ldf_stack_length = MEMORY_SIZEOF(seg_stak);
} > seg_stak
heap
{
// allocate a heap for the application
ldf_heap_space = .;
ldf_heap_length = MEMORY_SIZEOF(seg_heap);
ldf_heap_end = ldf_heap_space + ldf_heap_length - 1;
} > seg_heap
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -