Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    froofyJIT 0.27

    Download button

    No screenshots available
    Downloads: 437  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    froofyJIT Team | More programs
    LGPL / FREE
    September 30th, 2007, 03:35 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    froofyJIT description

    froofyJIT is a C++ 'syntactic sugar' front-end for Paolo Bonzini's GNU lightning library for dynamic native code generation.

    froofyJIT is a C++ 'syntactic sugar' front-end for Paolo Bonzini's GNU lightning library for dynamic native code generation. froofyJIT program uses C++'s powerful language facilities to allow GNU lightning instructions to be expressed in a more concise way that approximates a 'real' assembly language.

    Below is a program which uses froofyJIT to compute a Fibonacci number (directly translated from tests/fib.c in GNU lightning):

    #include < cstdlib >
    #include < iostream >
    #include "froofy/jit.h"

    static jit_insn codeBuffer[1024];

    typedef int (*pifi)(int);

    int main()
    {
    pifi nfibs;
    int in;
    {
    using namespace froofy::jit;
    label< > basis;

    nfibs/ !org, codeBuffer;
    prolog, 1;
    !arg< ui > in;
    getarg< ui > v0, in;
    blti< ui > basis, v0, 2;
    subi< ui > v1, v0, 1;
    subi< ui > v2, v0, 2;
    prepare< i > 1;
    pusharg< ui > v1;
    finish, nfibs;
    retval< i > v1;
    prepare< i > 1;
    pusharg< ui > v2;
    finish, nfibs;
    retval< i > v2;
    addi< ui > v1, v1, 1;
    addr< ui > rr, v1, v2;
    ret --;
    basis/ movi< i > rr, 1;
    ret --;
    !end, codeBuffer;
    }
    std::cout

    Product's homepage

      


    TAGS:

    GNU lightning | C++ front-end | lightning library | froofyJIT | GNU | lightning

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM