def generate(self, file=None):
        src = Template(_PROLOGUE_COMMENT).substitute(
            cfg_filename=self.cfg_filename)

        src += _PROLOGUE_CODE
        for node_cfg in self.node_cfg:
            src += node_cfg.generate_source() + '\n\n'

        file.write(src)
L{shared} tries to guess the shared system c++ compiler according to the
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycparser-2.14/pycparser/_ast_gen.py/ASTCodeGenerator.generate--crossover with--dataset/ETHPy150Open felix-lang/fbuild/lib/fbuild/builders/cxx/__init__.py/guess_shared