Am 13.06.2017 um 22:38 schrieb Miklos Marton:
> 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):
> 
> mm@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 doesn't seem to work with /dev/null, but works with an empty test.c:

> sdcc -Wp,-dM -E test.c
#define __SDCC_mcs51 1
#define __STDC_VERSION__ 201112L
#define __STDC_HOSTED__ 0
#define __STDC_UTF_16__ 1
#define __SDCC_VERSION_MINOR 6
#define __SDCC_MODEL_SMALL 1
#define __STDC_ISO_10646__ 201409L
#define __SDCC_VERSION_PATCH 9
#define SDCC 369
#define __SDCC_FLOAT_REENT 1
#define __SDCC_VERSION_MAJOR 3
#define __STDC_NO_VLA__ 1
#define __SDCC 3_6_9
#define __STDC_UTF_32__ 1
#define __STDC_NO_THREADS__ 1
#define __SDCC_CHAR_UNSIGNED 1
#define __STDC_NO_ATOMICS__ 1
#define __STDC__ 1
#define __SDCC_REVISION 10096
#define __STDC_NO_COMPLEX__ 1

Philipp

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to