[Vm-dev] codeGenerator vs cogitCodeGenerator

Guillermo Polito guillermopolito at gmail.com
Tue Nov 27 13:18:13 UTC 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20121127/f324f62f/attachment.htm


More information about the Vm-dev mailing list