Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Inline assembler jump through eBX

Frank_V_Intel
Employee
337 Views

Hi,

I'm trying to compile the following code, and I keep getting a warning indicating the compiler is expecting an indirect jump, but I want the direct form of the jump.  How do I trick the compiler into doing what I want?  The specific warning is "/usr/tmp/iccuUW8dVas_.s:59: Warning: indirect jmp without `*'", and if I add the indirect construction, the compiler is happy, but the code goes into the weeds.

    asm (

        "movl    $0xfff06278, %%ebx\n"

        "jmp     %%ebx\n"

        ::: "ebx"

    );

0 Kudos
0 Replies
Reply