This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Use of "__attribute__"
- To: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Subject: Re: [ECOS] Use of "__attribute__"
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Wed, 13 Jun 2001 10:23:31 +0200
- Organization: Telefónica I+D
- References: <19C34CD863B1D4118E2800508BAF663A0112F659@STONE>
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.