Doubt regarding INSN_ADDRESSES macro

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

 



Hi,

I have a doubt regarding INSN_ADDRESSES macro. 

As per my understanding, this macro should written the pseudo address
assigned to any instruction. However, when I am trying to use this macro
during machine dependent re-organization pass as shown below:

---snip---
  int LoopStartAddress = INSN_ADDRESSES(INSN_UID(loop->start_label));
  int LoopEndAddress = INSN_ADDRESSES(INSN_UID(loop->end_label));

  if( (LoopEndAddress - LoopStartAddress) == 1)
  {
        printf("Single Instruction");
  }
  else
  {
        printf("Multiple Instructions");
  }
---snip---

Am I using the macro correctly? Is there any constraint in using this
macro?


Thanks and Regards,
Meena


[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