[PATCH] Syntax of asm instrumentation code is changed from AT&T to Intel.

Evgeniy Stepanov eugenis at google.com
Wed May 21 00:53:38 PDT 2014


On Wed, May 21, 2014 at 11:35 AM, Yury Gribov <tetra2005 at gmail.com> wrote:
>> Do you know of any plans to implement that in gcc-asan?
>
> You mean integrated asm? I don't think there are any plans for this in GCC. So I only care about ability to manually add instrumentation in inline asm and/or .S when necessary.

Oh. I guess there are cases when adding checks in the C code right
before or after is not enough - some complex loop written entirely in
asm. Still, it sounds like an extremely rare case.

Even so, the call sequence is not that simple, and very non-standard.
Would it be easier to just do something like 'pusha; pushf;' and call
one of the functions we have for with-calls instrumentation?

>
>> As I understand, they don't have an integrated assembler and simply emit inline asm as text to .s.
>
> Yup.
>
> http://reviews.llvm.org/D3567
>
>



More information about the llvm-commits mailing list