You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
was added to disable the inclusion of <iostream> for freestanding compilers.
Unfortunately, for the STM32 microcontrollers at least, __STDC_HOSTED__ is defined and is equal to 1, so <iostream> is still included.
Setting the -ffreestanding flag is of little use as this has many more undesired collateral effects beyond setting __STDC_HOSTED__ to 0.
The footprint of <iostream> is around 150 kB, which is an enormous amount in my embedded world.
Would it be possible to add a user defined macro that (in conjunction with the __STDC_HOSTED__ macro) enables or disables the inclusion of the <iostream> library?
Thanks for your attention.
The text was updated successfully, but these errors were encountered:
I know the issue has already been reported in issue #57 and the following code:
was added to disable the inclusion of <iostream> for freestanding compilers.
Unfortunately, for the STM32 microcontrollers at least, __STDC_HOSTED__ is defined and is equal to 1, so <iostream> is still included.
Setting the -ffreestanding flag is of little use as this has many more undesired collateral effects beyond setting __STDC_HOSTED__ to 0.
The footprint of <iostream> is around 150 kB, which is an enormous amount in my embedded world.
Would it be possible to add a user defined macro that (in conjunction with the __STDC_HOSTED__ macro) enables or disables the inclusion of the <iostream> library?
Thanks for your attention.
The text was updated successfully, but these errors were encountered: