SDCC leverages GNU cpp I think, have you read [1] and gave it a try?

[1] http://sdcc.sourceforge.net/doc/sdccman.pdf

HTH,
chenwj


2017-06-14 4:38 GMT+08:00 Miklos Marton <martonmiklosq...@gmail.com>:
> 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?
>
> --
> Best regards,
> Miklos Marton
>
>
> ------------------------------------------------------------------------------
> 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



-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj

------------------------------------------------------------------------------
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