Hi guys,
For the following simple sample program
=================================
#include
int main( void ) { PORTB = 0xFF;
DDRB = 0x1;
}
================================
I get the following ssa form when doing "avr-gcc -mmcu=atmega8 -O3 -fdump-tree-all program.c"
-----------------------------------------------
;; Function main (main, funcdef_no=0, decl_uid=1495, cgraph_uid=0)
main ()
{
volatile uint8_t * _1;
volatile uint8_t * _4;
_1 = 56B;
*_1 ={v} 255;
_4 = 55B;
*_4 ={v} 1;
return;
}
--------------------------------------------------
When looking at this ssa tree through a gcc plugin, I wish to be able to get the register names PORTB and DDRB when dealing with the statements in basic block 2.
How can I do that? Can I somehow get back to the register names with the help of 56B and 55B?
I understand that the register names are just macros, and therefore this situation. But I still I need to be able to get the names for my work. Would debug info help? Please let me know and help me with it.
Thanks and regards,
Sandeep.