This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC embedded c proposal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]