This one puzzles me: $ nim c --os:any --exceptions:goto -d:noSignalHandler -d:danger -d:useMalloc hello Hint: used config file '/home/jose/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf] Hint: used config file '/home/jose/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf] Hint: used config file '/home/jose/src/avr/nim/nim.cfg' [Conf] .... CC: stdlib_io.nim CC: stdlib_system.nim CC: hello.nim gcc: error: unrecognized command-line option ‘-mmcu=atmega328p’ Error: execution of an external compiler program 'gcc -c -w -fmax-errors=3 -Os -DF_CPU=16000000UL -mmcu=atmega328p -flto -O3 -fno-strict-aliasing -fno-ident -I'/home/jose/.choosenim/toolchains/nim-#devel/lib' -I/home/jose/src/avr/nim -o /home/jose/.cache/nim/hello_r/stdlib_io.nim.c.o /home/jose/.cache/nim/hello_r/stdlib_io.nim.c' failed with exit code: 1 gcc: error: unrecognized command-line option ‘-mmcu=atmega328p’ gcc: error: unrecognized command-line option ‘-mmcu=atmega328p’ Run
It looks like with `-d:useMalloc`, it is not using `avr-gcc`, but I don't know why.