i'm unsuccessfully trying to compile nim 1.6.2 on a 2gb arm sbc,
seems link the minimum ram is 4gb
Nim runs N backend C compiler processes at same time when nim c/cpp foo.nim command is executed on the machine with N CPUs. (See execCmdsInParallel or execCmdsInParallel proc in compiler/extccomp.nim)
So adding --parallelBuild:1 option to Nim might reduce memory usage because Nim doesn't run multiple backend C compiler processes at same time.