Script for Laboratory: Designing embedded ASIPs - CES
Script for Laboratory: Designing embedded ASIPs - CES
Script for Laboratory: Designing embedded ASIPs - CES
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
addComment1();<br />
functionY();<br />
addComment2();<br />
}<br />
Mighty things can be done with those macros. Another example:<br />
#define ADD_COMMENT_STRING (NUMBER, STRING) \<br />
asm void addComment ## NUMBER() { \<br />
@[.barrier] \<br />
; COMMENT: STRING \<br />
}<br />
ADD_COMMENT_STRING(3, “between X and Y”)<br />
ADD_COMMENT_STRING(4, “after Y”)<br />
void main() {<br />
functionX();<br />
addComment3();<br />
functionY();<br />
addComment4();<br />
}<br />
- 31 -