Miklos Marton
2017-06-13 20:38:16 UTC
Hello all,
I am trying to use the SDCC's STM8 port with the QtCreator IDE with the
QBS build system.
The QBS tries to get the predefined macros by running the compiler with
"-Wp,-dM -E -x c /dev/null" arguments (in the case of gcc):
***@lapos:~$ gcc -Wp,-dM -E -x c /dev/null
#define __SSP_STRONG__ 3
#define __DBL_MIN_EXP__ (-1021)
#define __UINT_LEAST16_MAX__ 0xffff
#define __ATOMIC_ACQUIRE 2
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __UINT_LEAST8_TYPE__ unsigned char
#define __SIZEOF_FLOAT80__ 16
#define __INTMAX_C(c) c ## L
#define __CHAR_BIT__ 8
#define __UINT8_MAX__ 0xff
....
Is there any similar argument list with the same could be queried in SDCC?
I am trying to use the SDCC's STM8 port with the QtCreator IDE with the
QBS build system.
The QBS tries to get the predefined macros by running the compiler with
"-Wp,-dM -E -x c /dev/null" arguments (in the case of gcc):
***@lapos:~$ gcc -Wp,-dM -E -x c /dev/null
#define __SSP_STRONG__ 3
#define __DBL_MIN_EXP__ (-1021)
#define __UINT_LEAST16_MAX__ 0xffff
#define __ATOMIC_ACQUIRE 2
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __UINT_LEAST8_TYPE__ unsigned char
#define __SIZEOF_FLOAT80__ 16
#define __INTMAX_C(c) c ## L
#define __CHAR_BIT__ 8
#define __UINT8_MAX__ 0xff
....
Is there any similar argument list with the same could be queried in SDCC?
--
Best regards,
Miklos Marton
Best regards,
Miklos Marton