big progress: The backend is per-module and memory consumption is excellent

This commit is contained in:
Araq
2026-06-14 10:18:54 +02:00
parent 35a4d4da84
commit 39f08383f1
5 changed files with 131 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
discard """
targets: "c"
matrix: "--debugger:native --mangle:nim"
ccodecheck: "'testFunc__titaniummangle95nim_u'"
ccodecheck: "'testFunc_u' \\d+ '__titaniummangle95nim'"
"""
#When debugging this notice that if one check fails, it can be due to any of the above.

View File

@@ -3,7 +3,7 @@ discard """
-1
8
'''
ccodecheck: "'console.log(-1); function fac__tcodegendeclproc_u' \\d+ '(n_p0)'"
ccodecheck: "'console.log(-1); function fac_u' \\d+ '__tcodegendeclproc(n_p0)'"
"""
proc fac(n: int): int {.codegenDecl: "console.log(-1); function $2($3)".} =
return n