Andes Workshop

It is currently Thu Mar 28, 2024 9:18 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 關於 LMW 與 SMW
PostPosted: Thu Jan 19, 2012 4:04 pm 
Offline

Joined: Fri Aug 12, 2011 4:05 pm
Posts: 8
你好,

如果我想要存取位於 local memory space 的一串記憶體, 使用 LMW 可以讓那一串 bus access 儘量變成 burst 嗎?還是跟其他 load word 一樣,要一個一個搶 bus?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Thu Jan 19, 2012 4:43 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
可以,LMW 是使用burst mode


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Fri Jan 20, 2012 1:12 pm 
Offline

Joined: Fri Aug 12, 2011 4:05 pm
Posts: 8
cindy wrote:
可以,LMW 是使用burst mode


那再請教一下,在我寫 inline assembly 之前,要怎麼寫 c code 讓 compiler 使用 lmw? 還是我只能寫 inline assembly?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Fri Jan 20, 2012 1:33 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
如果是副程式的prologue、epilogue會自動轉成lmw及smw,
不然就要用inline assembly了。
或是都用組合語言寫。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Thu Jan 26, 2012 11:47 pm 
Offline

Joined: Fri Aug 12, 2011 4:05 pm
Posts: 8
cindy wrote:
如果是副程式的prologue、epilogue會自動轉成lmw及smw,
不然就要用inline assembly了。
或是都用組合語言寫。


請問可以給我一些會自動使用 lmw/smw 的 C 的例子嗎?
另外, 請問貴公司是否有實測過 load word 改成 load multi-word 的效能?像是以下的連結:
http://infocenter.arm.com/help/index.js ... 13544.html

謝謝回答,新年快樂!


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Fri Jan 27, 2012 6:43 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
新年快樂..我會盡快看一下


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Mon Jan 30, 2012 6:48 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
您只要寫一個簡單的code,
轉成assembly就有lmw及smw了。

至於你說的實測我們沒有試過。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Mon Feb 06, 2012 9:37 pm 
Offline

Joined: Fri Aug 12, 2011 4:05 pm
Posts: 8
cindy wrote:
您只要寫一個簡單的code,
轉成assembly就有lmw及smw了。

至於你說的實測我們沒有試過。


我知道寫成 function 時參數等等 push/pop stacks 會自動使用 lmw, 但是我說的是
怎麼樣在 function body 裡面寫成讓 compiler 會自動產生 lmw 的方式。比如說:

for (i=0; i<128; i++) {
*out++ = *in++;
}

這樣應該是不會產生 lmw/smw, 那怎麼樣會呢?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Thu Feb 09, 2012 4:47 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
我想你可以用inline assembly來寫。
Andes程式產生的lmw和smw都用在function的prolgue和epilogue。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 關於 LMW 與 SMW
PostPosted: Mon Mar 05, 2012 6:43 pm 
Offline

Joined: Fri Aug 12, 2011 4:05 pm
Posts: 8
cindy wrote:
我想你可以用inline assembly來寫。
Andes程式產生的lmw和smw都用在function的prolgue和epilogue。


請問一下哪裡有 Andes 的 C compiler calling convention 的文件嗎?要寫 inline assembly 需要這份文件,謝謝。


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

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