Address of label which is defined within an asm statement?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I have the following code:

__asm__ __volatile__ (
				...
				"MyLabel:	..."
				...
				: <output regs>
				: <input regs>
				: <clobber list>);

Within the asm statement, I have to find somehow the address of label "MyLabel", in order to use it in one instruction. I looked through the archives but only found a solution if the label is defined outside the asm statement, where the '&&' operator and the "X" constraint can be used to pass that label into the asm statement. However, I can't figure out how to do it in my case. Any ideas?

Thank you,

Ioannis

P.S: Unfortunately, the architecture that I use is unconventional and not yet available. This is why I don't mention it. I hope that there is a generic solution, that does not require architecture specific details.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux