View Single Post
Old 15th February 2012, 14:05   #17
Grandchild
Senior Member
 
Grandchild's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 339
About compilers/interpreters on the GPU:
I have toyed with flex/bison a bit (the lexer/parser thing that AVS uses) and it's very easy to use, but it spits out a parser in C. AVS then (and that's the impressive part) compiles the code by hand and makes binaries for each code section which it then executes accordingly.
I am not sure how easy it would be to translate that bison parser into OpenGL or similar (I think it would be really hard and also awkward), or make an (optional) compiler state result in GPU-assembler (perhaps the simpler way, if one would want to build a compiler step anyway). Just some food for thought...
Grandchild is offline   Reply With Quote