codeGenerator vs cogitCodeGenerator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

codeGenerator vs cogitCodeGenerator

Guillermo Polito
Hi all!!

I was looking at the VMMaker sources and noticed that by default when generating my vm, the interpreter and cogit files are generated with different CodeGenerators:

CrossPlatformVMMaker>>createCodeGenerator
"Set up a CCodeGenerator for this VMMaker - A cross platform tree leaves it up to the makefiles to decide whether to use the global struct or not."
^CCodeGeneratorGlobalStructure new initialize;
globalStructDefined: true;
structDefDefine: 'USE_GLOBAL_STRUCT';
logger: logger;
yourself

VMMaker>>createCogitCodeGenerator
^CCodeGenerator new initialize
logger: logger;
yourself


Why should they use different code generators? Shouldn't they by default use the same?

Tx,
Guille

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners