Displaying 2 results from an estimated 2 matches for "_mem_sync".
2007 Feb 05
1
[LLVMdev] Backend to start with
...ough LLVM, it is shown as follows (as you know):
.text
.align 16
.globl sum
.type sum, #function
sum:
save -96, %o6, %o6
!IMPLICIT_DEF %i0
restore %g0, %g0, %g0
retl
nop
But, I'd like to emit the source code to the assembly like this:
Enter sum; i,j, _mem_sync:1
reg k
add i,j;k
Exit sum; 0, _mem_sync:1
(FYI, "reg" implies "k" will be used in the following instructions. _mem_sync is FIFO for access to a memory.)
Can you recommend any step by step procedure for me so that I can accomplish this if I modify SPARC code? I am be...
2007 Feb 02
0
[LLVMdev] a pseudo instruction - code modified
Oh.. I am sorry. I missed one.
If I code a simple function like this:
void sum(int i, int j)
{
int k;
k = i + j;
}
On the assembly mnemonics, it should be shown as follows:
Enter sum; i,j, _mem_sync:1
reg k
add i,j;k
Exit sum; _mem_sync:1
I missed "_mem_sync" part. Sorry.