Author |
Message |
Forum: BSP (Board Support Package) Topic: sag to assign .o file in folder |
cindy |
Posted: Fri Jun 13, 2014 12:22 pm
|
|
Replies: 0 Views: 6001
|
The syntax to use sag to assign .o file inside a folder ./src/program1.o (+RW, +ZI) LOAD_ROM_1 0x0000 { EXEC_ROM_1 0x0000 { ./src/program1.o SORT (+RO) } DRAM 0x10000 0x8000 { ./src/program1.o (+RW, +ZI) } } LOAD_ROM_2 +0x1000 { EXEC_ROM_2 +0x0 { *(.text) *(+RO) } SRAM 0x18000 0x8000 { * (+RW, +ZI) ... |
|
 |
Forum: Programming Topic: Turn off relax optimization |
cindy |
Posted: Thu Jun 12, 2014 3:42 pm
|
|
Replies: 0 Views: 6723
|
Turn off relax optimization Linker Option: -mno-relax -mno-relax.png nds32le-elf-gcc -O0 -nostartfiles -static -mno-relax -Toutput/.nds32le-elf-mculib-v3_start0x0.x -Xlinker -defsym -Xlinker _stack=0x1000 -o "mem_test2.adx" ./src/mem_test2.o mem_test2.zip No relax: 00000000 <main>: 0: 46 0... |
|
 |
Forum: BSP (Board Support Package) Topic: Linker order - GCC |
cindy |
Posted: Tue Jun 10, 2014 3:24 pm
|
|
Replies: 0 Views: 6197
|
|
 |
Forum: Programming Topic: Read/write memory code for RTL simulation |
cindy |
Posted: Fri Jun 06, 2014 2:49 pm
|
|
Replies: 0 Views: 6579
|
This program is to observe memory read/write on BUS in RTL simulation. It is quiet simple. The data is at 0x68 0x6c 0x70 00000000 <main>: 0: 46 01 23 45 sethi $r0,#0x12345 4: 58 00 06 78 ori $r0,$r0,#0x678 8: 46 f0 00 00 sethi $r15,#0x0 c: 14 07 80 1a swi $r0,[$r15+#0x68] 10: 46 f0 00 00 sethi $r15,... |
|
 |
Forum: Announcement Topic: How to Design Chips to Meet the Demands of Low-Power IoT App |
cindy |
Posted: Fri May 30, 2014 6:20 pm
|
|
Replies: 0 Views: 21260
|
US webinar 2014.5.29 "How to Design Chips to Meet the Demands of Low-Power IoT Applications"
|
|
 |
Forum: Announcement Topic: Andes Core for IoT WiFi Application (Youtube video) |
cindy |
Posted: Tue May 20, 2014 5:36 pm
|
|
Replies: 0 Views: 20579
|
|
 |
Forum: BSP (Board Support Package) Topic: naked function |
cindy |
Posted: Sat May 17, 2014 12:17 am
|
|
Replies: 0 Views: 6288
|
From: http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html naked Use this attribute on the ARM, AVR, MCORE, MSP430, NDS32, RL78, RX and SPU ports to indicate that the specified function does not need prologue/epilogue sequences generated by the compiler. It is up to the programmer to provide t... |
|
 |
Forum: BSP (Board Support Package) Topic: NDS32 target attribute |
cindy |
Posted: Sat May 17, 2014 12:16 am
|
|
Replies: 0 Views: 5990
|
Cool! There are some NDS32 target attribute in gcc online document. http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html On NDS32 target, this attribute is to indicate that the specified function is an interrupt handler. The compiler will generate corresponding sections for use in an interrupt... |
|
 |
Forum: BSP (Board Support Package) Topic: always_inline |
cindy |
Posted: Sat May 17, 2014 12:07 am
|
|
Replies: 0 Views: 6162
|
about inline
Reference: http://gcc.gnu.org/onlinedocs/gcc/Funct ... butes.html
always_inline Generally, functions are not inlined unless optimization is specified. For functions declared inline, this attribute inlines the function even if no optimization level is specified. |
|
 |
Forum: AndeSight MCU/RDS Topic: enable ex9 optimization |
cindy |
Posted: Thu May 01, 2014 8:38 pm
|
|
Replies: 1 Views: 7663
|
The option -mex9 should add in both gcc and ld.
In compiler:
Attachment:
ex9_1.png [ 24.25 KiB | Viewed 7663 times ]
In linker:
Attachment:
ex9_2.png [ 24.08 KiB | Viewed 7663 times ]
Here is a example:
Attachment:
demo-int.zip [130.31 KiB]
Downloaded 685 times
|
|
 |
Sort by: |