[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    [LLVMdev]  Can I get the binary address of a for-loop statement?
From:       陳é <chenwj () iis ! sinica ! edu ! tw>
Date:       2011-04-27 2:57:01
Message-ID: 20110427025701.GA61615 () cs ! nctu ! edu ! tw
[Download RAW message or body]

Hi, all

  What I want to do is to locate the range of a for-loop statement in
a binary. For example, given a for-loop statement belows, 

for (stat1; stat2; stat3) {
  /* do something */
}

  Is it possible to get information about the range (binary address)
of the above for-loop, say, 0x0100 - 0x0120.

  One idea comes up in my mind is adding passes to retrieve such
information in LLVM, then use llvm-gcc to compile the code.

  Any suggestion appreciated.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667

_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic