![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 18
Rep Power: 0
![]() |
Access variable within inline asm
Is there a way to access a local variable via inline assembly? I'm working on a Solaris machine with g++. What I'd like to do is this:
long myWrapper(long *value1, long value2)
{
int tmp;
asm(" ... "
"st %l7 tmp"
" ... ");
return tmp;
}So basically I'm going through this assembly algorithm, and the value I want to return from the function is in a particular register in the middle of the algorithm. Any thoughts? Thanks in advance. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|