Is there are way to invoke NIM to generate ISO C99 compatible files as output?
I would like to use NIM-generated C source code to compile programs to execute on OpenVMS Alpha and OpenVMS I64. Those operating systems and architectures have mature C compilers that support ISO C99 (and ANSI C89) input files. The O/S also has existing LINUX compatible C runtime libraries so it should be possible to successfully link/execute the C compiler generated binaries.
http://h41379.www4.hpe.com/commercial/c/docs/spd.html
I have tried the various available NIM COMPILER:options available apparently without producing ISO C99 compatible code.
{ @Araq ?}
Thanks
Rod
Would something like that be enough? https://github.com/status-im/nim-milagro-crypto/blob/7b4a878757141c151a2e0ed1b999538dac8eeadc/src/milagro_internals.nim#L1-L5
# This statement checks to see if we're using a backend other then C, and if not, passes C99.
# We would just check for C except Nim only defines the other backends.
when not defined(cpp) or defined(objc) or defined(js):
{.passC: "-std=c99".}
Or are there C89 features that are incompatible with C99?