This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC embedded c proposal
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 29 Apr 2004 10:06:09 +0200
- Subject: Re: RFC embedded c proposal
- References: <4090B26B.4050002@solidas.com>
b) Declare an __attribute__, e.g. __attribute__((progmem)), that will
become a part of the type decleration:
__attribute__((progmem)) char a, b, c; // Works today in GCC
__attribute__((progmem)) int *p; // Does not work
Which of these two methods would be best suited for gcc?
I think this one; then if you want you can use builtin_define in the
target's TARGET_CPU_CPP_BUILTINS #define, to define _Progmem to be
__attribute__ ((progmem)). This is how AltiVec works, at least.
Paolo