harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zouqiong <ust...@gmail.com>
Subject [Drlvm][Opt]How to avoid instrumentation's effect on Reg-Allocation?
Date Thu, 08 Feb 2007 07:51:05 GMT
Hi, guys,
  I instrument during code selector pass, however, I find that my
instrmentation affects the register allocation. For example as follows:

      mov    %ebp, eax
      add    0xc, eax

      mov    $0xe1f0f4,%ebx
      mov    (%ebx),%edx
      mov    $0xe1f0f4,%ebx
      subl   $0x10,(%ebx)
      mov    %eax,(%edx)
      mov    0x8(%esp),%eax
      mov    %eax,0x4(%edx)
      movl   $0x9a0000,0x8(%edx)

      mov    0xc(%ebp,%eax,4),%ebp

      The code in yellow backgroud is my instrumentation. And we can see
that EAX is loaded from the stack in the instrumentation. It's bad.
I don't want my instrumentation doing it.
      Can someone tell me how can i avoid it?

Thanks,
Qiong


-- 
Best Regards,
Qiong,Zou

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message