Page 1 of 1

Platform agnostic C code output

Posted: Sun Aug 28, 2022 9:36 pm
by wysardry
It would be nice if there was an option for platform agnostic code output for the C backend when creating text only console programs, so that more targets could be supported via the appropriate C compilers.

For example, SDCC or z88dk could be used to target Z80 machines.

Nim has this option and is open source, if a working example would help.

To clarify, I'm not asking for PureBasic itself to be available on more platforms, just that it could produce suitable C code for them.

Re: Platform agnostic C code output

Posted: Sat Sep 03, 2022 5:13 pm
by Rinzwind
Yup that c output is not helping you if the build-in PB libraries are still platform dependent and without source.