RFC embedded c proposal
Giovanni Bajo
giovannibajo@libero.it
Thu Apr 29 12:51:00 GMT 2004
Svein E. Seldal wrote:
> Now, if I were to implement this into GCC, what would be best method
> of implementation? Consider:
>
> a) Add the appropriate _X keywords for the target at hand (which in
> this case could be _Progmem, _Flash, _Code or similar)
> b) Declare an __attribute__, e.g. __attribute__((progmem)), that will
> become a part of the type decleration:
Well, there has been discussion in the past on GCC adopting the Embedded C
standard. If I were to do this, I would surely go with (a), implementing it
under a new language dialect, like -std=embedded-c or something. Doing this
with (b) looks like a bad idea in the longer run, as we will have an
alternative non-standard syntax to cope with forever.
Giovanni Bajo
More information about the Gcc
mailing list