Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Inline assembler jump through eBX

Frank_V_Intel
Employee
186 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