Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
rip-label-imm.cpp File Reference
#include <xbyak/xbyak.h>
Include dependency graph for rip-label-imm.cpp:

Go to the source code of this file.

Classes

struct  Code
 

Macros

#define XBYAK_NO_OP_NAMES
 

Functions

void dump (const unsigned char *p, size_t n)
 
int main ()
 

Macro Definition Documentation

◆ XBYAK_NO_OP_NAMES

#define XBYAK_NO_OP_NAMES

Definition at line 1 of file rip-label-imm.cpp.

Function Documentation

◆ dump()

void dump ( const unsigned char * p,
size_t n )

Definition at line 73 of file rip-label-imm.cpp.

74{
75 for (int i = 0; i < n; i++) {
76 printf("%02x ", p[i]);
77 if ((i % 16) == 15) putchar('\n');
78 }
79 putchar('\n');
80}
const mie::Vuint & p
Definition bn.cpp:27
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
Here is the caller graph for this function:

◆ main()

int main ( void )

Definition at line 82 of file rip-label-imm.cpp.

83{
84 Code code;
85 void (*f)() = code.getCode<void (*)()>();
86 dump(code.getCode(), code.getSize());
87 f();
88}
const uint8 * getCode() const
Definition xbyak.h:905
void dump(const unsigned char *p, size_t n)
Definition bench.cpp:18
Here is the call graph for this function: