From: Gareth H. <ga...@va...> - 2001-03-09 00:18:51
|
Gareth Hughes wrote: > > My approach for this is perhaps slightly different to yours. I was > thinking more along the lines of having the compiled functions stored as > strings, which can be copied and edited by the context as needed. This > allows the context to insert hard-coded memory references and so on. > Similarly, I've been kicking around a design of a dynamic software > renderer, which is built from chunks of compiled code that can be > tweaked and chained together depending on the current GL state etc. I > don't think actually "compiling" code is the answer -- it's more a > customization of pre-compiled code to suit the current context. I should also add that functions can be built up from basic blocks, and these blocks are stored as strings and are edited/chained together to form the function as required. -- Gareth |