From: Keith W. <ke...@va...> - 2001-03-13 17:17:04
|
Josh Vanderhoof wrote: > > Gareth Hughes <ga...@va...> writes: > > > Compiling this with the code Josh sent takes around 70 msec on my 700MHz > > PIII laptop. > > > > void codegen_test( void ) > > { > > printf( "hello, world!\n" ); > > } > > > > That's a long time at 60fps... > > I would think you would keep a cache of the stuff that you've compiled > to avoid re-compiling every time you want to call the routine. So > you're really looking at a one time start up cost. Is there something > where the code would change on every single frame? Yes. I think you'd probably see less than 10 compiles at application startup and then no more. If applications behave in a wierd morphing way, just pull the plug on compilation and let them use the generic code. Keith |