[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] store program address into a variable
From: |
Pietro Nizzola |
Subject: |
[avr-gcc-list] store program address into a variable |
Date: |
Sun, 14 Oct 2001 23:02:28 +0200 |
Hi,
I would like to get the program address of a given instruction and store
this address into a variable.
How can I achieve this?
My idea ist something like this, but it doesn't work:
void (*address)(void);
void Job1(void)
{
....
}
int main(void)
{
address = label;
...
Job1();
label:
...
return;
}
Grazie
Pietro
- [avr-gcc-list] store program address into a variable,
Pietro Nizzola <=