I am trying to do the same without success. I created `hello.nim`: echo "Hello, world!" Run
The `panicoverride.nim` file: proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.} proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.} {.push stack_trace: off, profiler:off.} proc rawoutput(s: string) = printf("%s\n", s) proc panic(s: string) = rawoutput(s) exit(1) {.pop.} Run and `nim.cfg`: avr.standalone.gcc.path = "/usr/bin" avr.standalone.gcc.exe = "avr-gcc" avr.standalone.gcc.linkerexe = "avr-gcc" passC = "-Os" passC = "-DF_CPU=16000000UL" passC = "-mmcu=atmega328p" passL = "-mmcu=atmega328p" passC = "-flto" passL = "-flto" cpu = "avr" define = "danger" deadCodeElim = "on" gc = "arc" Run When I try to compile: $ nim c --os:standalone 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] .... Error: system module needs: raiseExceptionEx Run I tried also with: nim c --os:standalone --exceptions:quirky hello Run (same issue) What am I missing? I am using ArchLinux: $ nim --version Nim Compiler Version 1.5.1 [Linux: amd64] Compiled at 2021-03-31 Copyright (c) 2006-2021 by Andreas Rumpf git hash: 7c09e0c75773a2df6469a2acd94f3090aef83255 active boot switches: -d:release $ avr-gcc --version avr-gcc (GCC) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Run