Andes Workshop http://forum.andestech.com/ |
|
關於__builtin_memcpy http://forum.andestech.com/viewtopic.php?f=16&t=590 |
Page 1 of 1 |
Author: | cindy [ Wed Jul 04, 2012 6:36 pm ] |
Post subject: | 關於__builtin_memcpy |
在我們的demo裡,用到一個function __builtin_memcpy 它出現的例子是這樣子: #define MEMCPY(des, src, n) __builtin_memcpy ((des), (src), (n)) #define MEMSET(s, c, n) __builtin_memset ((s), (c), (n)) 它是一個compiler內建的function,不需要include任何header file。 compiler對它的處理是將memcpy以組合語言展開, 而不是像一般的function執行。(跳出去function再跳回來) 比較像是macro的樣子。 |
Author: | banyh [ Thu Jul 03, 2014 8:20 pm ] |
Post subject: | Re: 關於__builtin_memcpy |
請問 __builtin_memcpy 在複製時是以4-byte為單位還是以1-byte為單位? |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |