nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.61k stars 1.47k forks source link

cbuilder: upper half of cgen, variable decls #24423

Closed metagn closed 1 week ago

metagn commented 1 week ago

The lower half of cgen contains the main proc and HCR init code which cause a large diff, so they are excluded from this PR. In general things like generated defines, line directives, the stacktrace macros (nimfr_ etc) are also not done, since there are not exact equivalents for these in NIFC (NIFC does generate line directives but based on the NIF line info mechanism).

github-actions[bot] commented 1 week ago

Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 9d61f2cdd109e743a7cf7b3297875d3027bf9e2a

Hint: mm: orc; opt: speed; options: -d:release 177403 lines; 8.660s; 652.551MiB peakmem