Hi, time ago I made a project for use Nim on arduino for esp8266. Now I'm starting a more ambitious project to use Nim on many different embedded platforms. But I have 2 problems.
In the generated code, Nim includes a call to stderrdue to proc raiseOutOfMemin mmdisp.nim. Is there a way to get rid of it without setting the gc to none?
Is there a way of override system io.nim(like a compiler parameter)? Because every embedded platform has a custom library for accessing IO.
I'm using --os:standalone(this is my full parameters list --os:standalone --gc:regions --cpu:mips --define:StandaloneHeapSize=32 --opt:size), but Nim still includes a call to stderrand import io.nim.
I think the team would be happy to discuss a switch to disable io (or add it to os:standalone) so that it's easier to use with embedded. You should probably start with a RFC: https://github.com/nim-lang/RFCs
In this case I think a PR to get this done is fine, it shouldn't require much changes. It'll be easier to discuss in the PR and be more efficient time-wise.