Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: x86/x64 JIT...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 4637 of 4724
Post > Topic >>

Re: x86/x64 JIT assembler for C++

by "Alexei A. Frounze" <spamtrap@[EMAIL PROTECTED] > Apr 29, 2008 at 10:58 PM

On Apr 29, 6:27 pm, herumi <spamt...@[EMAIL PROTECTED]
> wrote:
> Hello, I have released a JIT assembler for x86/x64 for C++ named as
> Xbyak.
> You can write x86/x64 mnemonics by writing C++ member function.
> This library sup****ts Windows(32bit, 64bit), Linux(32bit, 64bit),
> Intel Mac.
>
> http://homepage1.nifty.com/herumi/soft/xbyak_e.html
>
> For example
> ---
> #include <stdio.h>
> #include "xbyak.h"
>
> struct AddFunc : public Xbyak::CodeGenerator {
>     AddFunc(int y)
>     {
>         mov(eax, ptr[esp+4]);
>         add(eax, y);
>         ret();
>     }
>
> };
>
> int main()
> {
>     AddFunc a(3);
>     int (*add3)(int) = (int (*)(int))a.getCode();
>     printf("3 + 2 = %d\n", add3(2));}
>
> ---
> In the above sample, add(eax, y) function generates add eax, 3 when
> this program is runnning(y = 3).
> The other sample is a fast quantization for JPEG(http://
> homepage1.nifty.com/herumi/soft/xbyak/quantize.cpp).
> This sample generates fast division in runtime.
> Please try this if you are interested in Xbyak.
>
> Thank you,
> herumi

Nice. Do you sup****t properly no-execute/DEP or will it page fault if
DEP is enabled in Windows?

Alex
 




 7 Posts in Topic:
x86/x64 JIT assembler for C++
herumi <spamtrap@[EMAI  2008-04-29 18:27:11 
Re: x86/x64 JIT assembler for C++
"Alexei A. Frounze&q  2008-04-29 22:58:05 
Re: x86/x64 JIT assembler for C++
herumi <spamtrap@[EMAI  2008-04-30 01:11:48 
Re: x86/x64 JIT assembler for C++
Phil Carmody <thefatph  2008-04-30 13:13:00 
Re: x86/x64 JIT assembler for C++
"Wolfgang Kern"  2008-05-01 10:46:05 
Re: x86/x64 JIT assembler for C++
herumi <spamtrap@[EMA  2008-04-30 18:16:58 
Re: x86/x64 JIT assembler for C++
"Alexei A. Frounze&q  2008-04-30 20:16:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 17:34:38 CDT 2008.