Hi Guille,<div><br></div><div>    I use VMMaker class&gt;&gt;activeVMMakerClassFor: to create the VMMaker, and hence the code generator, using &#39;Cross&#39; as the platform name, which yields a <span class="" style="font-family:arial,sans-serif;font-size:14px;color:rgb(0,0,0)">CrossPlatformVMMaker.  Look at the methods in VMMaker class&#39;s configurations </span><span class="" style="font-family:arial,sans-serif;font-size:14px;color:rgb(0,0,0)">protocol.  IMO, this is the right way to generate sources.  e.g.</span></div>
<div><span class="" style="font-family:arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></span></div><div><span class="" style="font-family:arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><div>generateSqueakCogVM</div>
<div><span class="" style="white-space:pre">        </span>^VMMaker</div><div><span class="" style="white-space:pre">                </span>generate: CoInterpreter</div><div><span class="" style="white-space:pre">                </span>and: StackToRegisterMappingCogit</div>
<div><span class="" style="white-space:pre">                </span>with: #(<span class="" style="white-space:pre">        </span>MULTIPLEBYTECODESETS false</div><div><span class="" style="white-space:pre">                                </span>NewspeakVM false)</div><div>
<span class="" style="white-space:pre">                </span>to: (FileDirectory default pathFromURI: &#39;oscogvm/src&#39;)</div><div><span class="" style="white-space:pre">                </span>platformDir: (FileDirectory default pathFromURI: &#39;oscogvm/platforms&#39;)</div>
<div><span class="" style="white-space:pre">                </span>including:#(<span class="" style="white-space:pre">        </span>ADPCMCodecPlugin AsynchFilePlugin BalloonEnginePlugin B3DAcceleratorPlugin</div><div><span class="" style="white-space:pre">                                        </span>BMPReadWriterPlugin BitBltSimulation BochsIA32Plugin GdbARMPlugin CroquetPlugin DSAPlugin</div>
<div><span class="" style="white-space:pre">                                        </span>DeflatePlugin DropPlugin FT2Plugin FFTPlugin FileCopyPlugin FilePlugin FloatArrayPlugin</div><div><span class="" style="white-space:pre">                                        </span>FloatMathPlugin GeniePlugin HostWindowPlugin IA32ABIPlugin InternetConfigPlugin</div>
<div><span class="" style="white-space:pre">                                        </span>JPEGReadWriter2Plugin JPEGReaderPlugin JoystickTabletPlugin KlattSynthesizerPlugin</div><div><span class="" style="white-space:pre">                                        </span>LargeIntegersPlugin LocalePlugin MIDIPlugin MacMenubarPlugin Matrix2x3Plugin</div>
<div><span class="" style="white-space:pre">                                        </span>MiscPrimitivePlugin Mpeg3Plugin QuicktimePlugin RePlugin SecurityPlugin SerialPlugin</div><div><span class="" style="white-space:pre">                                        </span>SocketPlugin SoundCodecPlugin SoundGenerationPlugin SoundPlugin ThreadedIA32FFIPlugin</div>
<div><span class="" style="white-space:pre">                                        </span>StarSqueakPlugin UUIDPlugin UnixOSProcessPlugin Win32OSProcessPlugin VMProfileMacSupportPlugin)</div><div><br></div><div>and follow the send chain through to <span class="" style="color:rgb(34,34,34);font-family:arial;font-size:small">activeVMMakerClassFor:</span></div>
</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 5:18 AM, Guillermo Polito <span dir="ltr">&lt;<a href="mailto:guillermopolito@gmail.com" target="_blank">guillermopolito@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>Hi all!!<div><br></div><div>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:</div>
<div><br></div><div><div>
<div>CrossPlatformVMMaker&gt;&gt;createCodeGenerator</div><div><span style="white-space:pre-wrap">        </span>&quot;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.&quot;</div>

<div><span style="white-space:pre-wrap">        </span>^CCodeGeneratorGlobalStructure new initialize;</div><div><span style="white-space:pre-wrap">                </span>globalStructDefined: true;</div><div>
<span style="white-space:pre-wrap">                </span>structDefDefine: &#39;USE_GLOBAL_STRUCT&#39;;</div><div><span style="white-space:pre-wrap">                </span>logger: logger;</div><div><span style="white-space:pre-wrap">                </span>yourself</div>

</div></div><div><br></div><div><div>VMMaker&gt;&gt;createCogitCodeGenerator</div><div><span style="white-space:pre-wrap">        </span>^CCodeGenerator new initialize</div><div><span style="white-space:pre-wrap">                </span>logger: logger;</div>

<div><span style="white-space:pre-wrap">                </span>yourself</div></div><div><br></div><div><br></div><div>Why should they use different code generators? Shouldn&#39;t they by default use the same?</div><div>
<br></div><div>Tx,</div><div>Guille</div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>
</div>