This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: Use of "__attribute__"


Ho Shui Choy Stanley PS03B NCS wrote:

> I have a question on the usage of "__attribute__". So far I am able to
> specify which section certain functions reside in, using __attribute__
> ((section (".my_section"))). But I can't do the same for classes, why?

  A class needs to be instantiated to produce something in compilation
time.

  Surely you can use __atribute__ whith an instantiation of a class.



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