Andes Workshop

It is currently Fri Mar 29, 2024 4:16 am

All times are UTC + 8 hours [ DST ]


Search found 12 matches
Search these results:

Author Message

 Forum: AndeSight MCU/RDS   Topic: 如何將library file加入makefile dependency

Posted: Thu Jul 24, 2014 12:59 pm 

Replies: 2
Views: 19683


在project目錄下,有一個 libxxx.a
當這個檔案更新時,build時不會重新link
請問有辦法將這個檔案加入 dependency嗎?

 Forum: BSP (Board Support Package)   Topic: 關於__builtin_memcpy

 Post subject: Re: 關於__builtin_memcpy
Posted: Thu Jul 03, 2014 8:20 pm 

Replies: 1
Views: 15343


請問 __builtin_memcpy 在複製時是以4-byte為單位還是以1-byte為單位?

 Forum: AndeSight STD   Topic: user section出現overlap error

Posted: Mon May 05, 2014 2:23 pm 

Replies: 1
Views: 9666


我希望自定義user section .dlm,並將dlm section的內容放到DLM中 sag 內容如下: USER_SECTIONS .ilm, .dlm BINARY_PART1 0x00000000 0x00010000 { ILM 0x00000000 0x00010000 { VAR _ILM_BASE = 0x00000000 ; ILM base address VAR _ILM_SIZE = 0x00010000 ; 64Kb LOADADDR __ilm_lmastart ADDR __ilm_start * (.nds32_init) * (.ilm) ; funct...

 Forum: AndeSight STD   Topic: 能夠將interrupt vector table放到ILM嗎?

Posted: Mon Apr 28, 2014 5:43 pm 

Replies: 1
Views: 9493


我想到的作法如下: 1.crt0.o和ILM function集中放到 .ilm section 2.ilm section放在load address 0 3.因為ILM大小是64KB,所以text, RO從load address 0x10000開始放 4.開機後將ilm section複製到ILM,並將interrupt vector table指向ILM 但這樣有個問題,crt0.o會同時放到text section,造成multiple definition of '_start': ILM 0x00000000 0x00010000 { LOADADDR __ilm_lmastar...

 Forum: AndeSight STD   Topic: Global object constructor is not called

Posted: Thu Apr 17, 2014 3:17 pm 

Replies: 1
Views: 8939


class Test { public: int id; Test (int newid) : id(newid) {} }; Test Test1(123); int main () { printf ("%d\n", Test1.id); } 在dev-c++執行時,可以正常的印出123。 但是用Andesight,會印出0 (因為Test1放在bss section),沒有呼叫constructor。 這個問題的目的,是希望能建立global object with constant member。例如: class Test { public: const int...

 Forum: AndeSight STD   Topic: 如何指定compile/link的目錄?

Posted: Fri Apr 11, 2014 1:36 pm 

Replies: 1
Views: 8679


假設我有A,B,C三位客戶,根據三位客戶不同的需求,建了三個檔案:
src/customer_A/func.cpp
src/customer_B/func.cpp
src/customer_C/func.cpp

func.cpp 裡面的function prototype完全相同,只差在內容不同
但這樣link時會出現symbol衝突
是否能針對不同的build configuration,指定需要compile/link的目錄?

 Forum: AndeSight STD   Topic: 如何減少code size

 Post subject: Re: 如何減少code size
Posted: Wed Apr 09, 2014 4:12 pm 

Replies: 3
Views: 13196


謝謝,沒問題了

加上 -fno-exceptions -fno-rtti 就可以從77KB降到7KB

 Forum: AndeSight STD   Topic: 如何減少code size

 Post subject: 如何減少code size
Posted: Mon Apr 07, 2014 9:05 pm 

Replies: 3
Views: 13196


在map.txt中,看到很多沒有用過的library function,而且比主程式大很多。 是否有辦法移除這些function? 例如 0x00001fdc __gxx_personality_v0 0x00006388 __cxa_demangle 0x00006354 __gcclibcxx_demangle_callback 0x000069e0 _Unwind_GetIPInfo 0x000069d8 _Unwind_GetIP 0x00009694 _Unwind_Find_FDE 0x00009430 __register_frame 0x0000a07c __sfvwrite_...

 Forum: AndeSight STD   Topic: N903A-S VEP模擬問題

 Post subject: N903A-S VEP模擬問題
Posted: Tue Mar 04, 2014 6:39 pm 

Replies: 2
Views: 11453


當使用附檔的vep來執行模擬時,會出現錯誤訊息 SID CPU[0]: warning, --config-isa-mac is not available in Baseline V2 SID CPU[0]: warning, --config-isa-div is not available in Baseline V2 需要將<attribute name="cpu-option" value="...">裡面的 --config-isa-mac on --config-isa-div on 移除才可以正常執行 請問有什麼方法解決嗎? 因為每次改V...

 Forum: Programming   Topic: BSE and BSP instruction

 Post subject: Re: BSE and BSP instruction
Posted: Tue Mar 04, 2014 6:31 pm 

Replies: 3
Views: 12583


沒事了,我在nds32_intrinsic.h裡面找到了
__nds32__bse(r, a, b)
__nds32__bsp(r, a, b)

用來作bit stream extract/pack
Sort by:  
Page 1 of 2 [ Search found 12 matches ]


All times are UTC + 8 hours [ DST ]


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