[Qbs] bare-metal: Need help with adding of SDCC compiler
orgads at gmail.com
Fri Mar 1 09:44:22 CET 2019
On Thu, Feb 21, 2019 at 9:52 PM Denis Shienkov <denis.shienkov at gmail.com>
> Hi guys.
> I have planns to add support for SDCC  compiler to QBS/QtC for
> bare-metal devices.
> But problem is that this compiler supports multiple different arcitectures:
> c:\SDCC\bin>sdcc -v
> SDCC :
> 3.8.0 #10562 (MINGW32)
> published under GNU General Public License (GPL)
> The target architecture is specified trough the flag -m<arch>... So, in
> different cases we wil get a different predefined macroses, e.g:
... snip ...
> So, it is problematic to define a compiler ABI and etc...
> Has anybody any suggestions how to solve this? Is any similar cases in
Why should Qbs care about the predefined macros? Qtc needs them for the
code model, but it passes -m flags (at least now with
So in the kit you can set the default ABI (if any, or unknown otherwise),
and the code model will pick up the correct ABI according to the compiler
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qbs