This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC embedded c proposal
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Svein E. Seldal" <svein dot seldal at solidas dot com>,<gcc at gcc dot gnu dot org>
- Date: Thu, 29 Apr 2004 14:02:45 +0200
- Subject: Re: RFC embedded c proposal
- References: <4090B26B.4050002@solidas.com>
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