Nim for embedded sytems documentation is unclear

2022-09-14 Thread Wys
The [Nim for embedded systems](https://nim-lang.org/docs/nimc.html#nim-for-embedded-systems) section of the compiler user guide is unclear. Settings such as nimPage256 and nimMemAlignTiny are mentioned, but it does not say how or where to set these. Is it done with command line switches, in th

Nim compiler options for Z80 C compiler?

2022-09-11 Thread Wys
I'm no expert, but I would imagine that Nim is capable of producing code suitable for modern 8-bit compilers if it is able to do so for the Tiny C Compiler. Following the C89 standard would be best for my use case, but most of C99 is usually supported too. As I intend to create text adventures

Nim compiler options for Z80 C compiler?

2022-09-10 Thread Wys
I would like to be able to use Nim to compile to C code that is suitable for a Z80 compiler such as [z88dk](https://z88dk.org/site/) or [SDCC](http://sdcc.sourceforge.net/) but am having difficulty in finding the correct command line switches etc. The documentation lists the switches, but not t