[Mono-list] Implementing attribute-based code generation

Stephen Touset stephen@touset.org
Thu, 13 Jan 2005 08:57:30 -0500


Dan Maltes wrote:

>This sounds very interesting.  How much runtime control would we have over attribute values?  Could runtime change of attribute trigger a jit, or would this become unstable and/or poor performance?
>  
>
I'd like to start small. My intention is to make an "Extension" 
interface/abstract class which provides hooks for different aspects of 
the compilation process. A .dll could be loaded at mcs runtime which 
provides code for these hooks, which are then called at the respective 
points in the compilation process. This way these extra "features" could 
be kept out of mcs proper.

This is certainly a possibility, but I believe it would have to be done 
in the mono jit, rather than in mcs. I'm hoping right now for 
compile-time adjustments to code rather than jit-time.