Questions tagged [asmjit]

AsmJit is a complete JIT and remote assembler for C++ language.

AsmJit is a complete JIT and remote assembler for C++ language. It can generate native code for x86 and x64 architectures having support for a full instruction set, from legacy MMX to the newest AVX2. It has a type-safe API that allows C++ compiler to do a semantic checks at compile-time even before the assembled code is generated or run.

20 questions
0
votes
0 answers

asmjit getgpArg(), getxmmArg() and make() replacement

I'm currently working on a legacy codebase which used old asmjit with the intenion of migrating to using the latest asmjit. I've been able to figure out signature replacements e.g. call, setArg I need help in understanding alternatives for old…
rahul
  • 407
  • 1
  • 6
  • 20
0
votes
3 answers

Retrieve ptr from function call asmjit

I am trying to generate a function call using AsmJit to which I pass an char*. This char* is in itself retrieved from another function call. I tried out this: typedef const char* getStr(); const char* getStrImpl() { return "hello pie"; } void…
Jerry
  • 13
  • 5
0
votes
1 answer

Can't catch exception in asmjit

I'm using asmjit and I came across a problem. When c++ exception being throwed by a function called in generated jit code (x64), it can not be catched even if I do try-catch outside the jit function call, why's that and how can I catch the exception…
Monkey Shen
  • 199
  • 1
  • 6
0
votes
1 answer

Get a variable value to a register with AsmJit

How can I get a variable value to a register using AsmJit API? Some thing like below? int x = 234; Assember a; a.mov(rax, $value_of_x);
chamibuddhika
  • 1,419
  • 2
  • 20
  • 36
0
votes
1 answer

Referring global variable with AsmJit

I need to to load an address of an existing global variable/ exernal variable to a register with a lea operation. Is this possible in AsmJit? The associated ptr function only seem to accept GpVar which needs to be created within AsmJit.
chamibuddhika
  • 1,419
  • 2
  • 20
  • 36
1
2