DMartens wrote:
2) C Compiler (wdc02cc/wdc816cc)
- Some common datatypes are not standard included (e.g. uint8_t, uint16_t, uchar, ushort, ulong, etc.). Need to be user-defined.
- There is no prefix for binary values (e.g. in bitmasks etc). Must use HEX, octal or decimal.
C doesn't define uint8_t and so on. It's not part of the language standard.
Also note that the WDC C compiler is relatively old - it may well be ANSI C, but is it C89, C99, ... ?
C99 introduced the concept of a <stdint.h> file to define these types for you - some older C compilers also had it too but it may well have been very implementation dependant.
So - all you need to do is copy this file from another implementation that can use it, adapt as needs and use it.
And again binary prefix isn't a standard part of C ...
See here for an interesting way to do it:
https://www.thecodingforums.com/threads ... -c.318127/So while I'll probably never use the WDC C compiler (because it doesn't run natively under Linux and cc65 is good enough for me) in this case I suspect it's not really at fault...
-Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/