Andes Workshop

It is currently Sun Sep 25, 2022 1:31 pm

All times are UTC + 8 hours [ DST ]


Search found 487 matches
Search these results:

Author Message

 Forum: BSP (Board Support Package)   Topic: sag to assign .o file in folder

Posted: Fri Jun 13, 2014 12:22 pm 

Replies: 0
Views: 5683


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

 Post subject: Turn off relax optimization
Posted: Thu Jun 12, 2014 3:42 pm 

Replies: 0
Views: 6341


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

 Post subject: Linker order - GCC
Posted: Tue Jun 10, 2014 3:24 pm 

Replies: 0
Views: 5844


This is a good article
http://stackoverflow.com/questions/4513 ... -order-gcc

Why does the order in which libraries are linked sometimes cause errors?

 Forum: Programming   Topic: Read/write memory code for RTL simulation

Posted: Fri Jun 06, 2014 2:49 pm 

Replies: 0
Views: 6198


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

Posted: Fri May 30, 2014 6:20 pm 

Replies: 0
Views: 20752


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)

Posted: Tue May 20, 2014 5:36 pm 

Replies: 0
Views: 20079


Andes Core for IoT WiFi Application


https://www.youtube.com/watch?v=lQuuCZ84Y14

 Forum: BSP (Board Support Package)   Topic: naked function

 Post subject: naked function
Posted: Sat May 17, 2014 12:17 am 

Replies: 0
Views: 5914


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

 Post subject: NDS32 target attribute
Posted: Sat May 17, 2014 12:16 am 

Replies: 0
Views: 5621


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

 Post subject: always_inline
Posted: Sat May 17, 2014 12:07 am 

Replies: 0
Views: 5790


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

 Post subject: enable ex9 optimization
Posted: Thu May 01, 2014 8:38 pm 

Replies: 1
Views: 7231


The option -mex9 should add in both gcc and ld.

In compiler:
Attachment:
ex9_1.png
ex9_1.png [ 24.25 KiB | Viewed 7231 times ]


In linker:
Attachment:
ex9_2.png
ex9_2.png [ 24.08 KiB | Viewed 7231 times ]


Here is a example:
Attachment:
demo-int.zip [130.31 KiB]
Downloaded 643 times
Sort by:  
Page 5 of 49 [ Search found 487 matches ]


All times are UTC + 8 hours [ DST ]


Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group