Implements the entry point into the C code generator.
Imports
-
../ast/ast_types, ../ast/lineinfos, cgbackend, cgen, cgir2, extccomp, ../front/options, ../front/msgs, ../modules/modulegraphs, ../sem/modulelowering, ../utils/nversion, ../utils/pathutils, ../utils/platform, ../utils/ropes, ../utils/tracer, ../ast/reports, ../ast/report_enums, ../ast/reports_sem, ../ast/reports_backend, ../sem/passes
Procs
proc generateCode(g: ModuleGraph; mlist: sink ModuleList) {....raises: [Exception, ERecoverableError, KeyError, ValueError, IOError, OSError], tags: [ RootEffect, ReadDirEffect, TimeEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect].}
- Entry point into the C code generator. Generates the C code for the whole (live) program, writing all modified and new C files to disk. Source Edit