Altera_Forum
Honored Contributor
20 years agohelp me,save my memory
hi!
my application use more memory in the nios than arm platform I use the objdump print as follow: [root@localhost pppd]# nios2-elf-objdump --header pppd_dump.elf pppd_dump.elf: file format elf32-littlenios2 Sections: Idx Name Size VMA LMA File off Algn 0 .text 00023bf0 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .data 000071c8 00023bf0 00023bf0 00023c24 2**2 CONTENTS, ALLOC, LOAD, RELOC, DATA, SMALL_DATA 2 .bss 0001bf54 0002adb8 0002adb8 0002adec 2**2 ALLOC 3 .comment 00000630 00000000 00000000 0002adec 2**0 CONTENTS, READONLY 4 .debug_aranges 00000460 00000000 00000000 0002b41c 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 5 .debug_pubnames 000014bb 00000000 00000000 0002b87c 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 6 .debug_info 00012a78 00000000 00000000 0002cd37 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 7 .debug_abbrev 00003af3 00000000 00000000 0003f7af 2**0 CONTENTS, READONLY, DEBUGGING 8 .debug_line 00013bc5 00000000 00000000 000432a2 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 9 .debug_frame 00002150 00000000 00000000 00056e68 2**2 CONTENTS, RELOC, READONLY, DEBUGGING 10 .debug_str 00009385 00000000 00000000 00058fb8 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_ranges 00000998 00009385 00009385 0006233d 2**0 CONTENTS, READONLY, DEBUGGING [root@localhost pppd]# arm-elf-objdump --header pppd.gdb pppd.gdb: file format elf32-littlearm Sections: Idx Name Size VMA LMA File off Algn 0 .text 00024c20 00000000 00000000 00008000 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .data 00006bc0 00024c20 00024c20 0002cc20 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .bss 0000a1c0 0002b7e0 0002b7e0 000337e0 2**4 ALLOC 3 .debug_abbrev 00014bc3 00000000 00000000 000337e0 2**0 CONTENTS, READONLY, DEBUGGING 4 .debug_info 002985c5 00000000 00000000 000483a3 2**0 CONTENTS, READONLY, DEBUGGING 5 .debug_line 0005f85c 00000000 00000000 002e0968 2**0 CONTENTS, READONLY, DEBUGGING 6 .debug_pubnames 0000373a 00000000 00000000 003401c4 2**0 CONTENTS, READONLY, DEBUGGING 7 .debug_aranges 00001c80 00000000 00000000 003438fe 2**0 CONTENTS, READONLY, DEBUGGING Thank you for all response!