Working with __asm__

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Working with __asm__

Postby yildizabdullah » Wed Mar 11, 2015 8:39 am

I'm exploring an example C code which includes an inline assembly code as:

__asm__("lsr %[j], %[j], 25" : [j] "=r" (j) : [i] "[j]" (j));

What is the meaning of : [j] "=r" (j) : [i] "[j]" (j) that follows the assembler template part?
yildizabdullah
 
Posts: 15
Joined: Thu Jul 31, 2014 10:51 am
Location: Istanbul

Re: Working with __asm__

Postby sebraa » Wed Mar 11, 2015 2:31 pm

sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 14 guests