Simple install hook

Philip Herron redbrain@gcc.gnu.org
Tue Feb 11 16:51:00 GMT 2014


Added install hook:

/opt/gjit/bin/gcc -g -O2 -Wall t.c -o test -I/opt/gjit/include
-lgccjit -L/opt/gjit/lib

Compiles the helloworld examples correctly and it runs instead of
pointing to my gcc build dir. Am working on getting more involved with
this and started:

https://github.com/redbrain/spy

Its only just starting to parse stuff but a kind of C/Python kind of
language using gcc as a JIT might be interesting kind of dynamic
language for C that can call C libs safely and easily is the idea.
Mostly just so i can see where to help out in the jit front-end.

Was also considering some kind of libopcodes work to assemble the code
in memory instead of creating a .so in /tmp. Not sure if i know what i
am doing enough there but it might be more elegant for stuff using
this front-end.

Am so impressed how well this works.

Thanks David.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-install-hook.patch
Type: text/x-patch
Size: 700 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140211/6e4ef237/attachment.bin>


More information about the Gcc-patches mailing list