This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: pragma code_seg not working
- From: Edgar Grimberg <edgar dot grimberg at gmail dot com>
- To: "sankar.P" <sancar2k at yahoo dot com>
- Cc: ecos-discuss at sourceware dot org
- Date: Wed, 22 Feb 2012 14:58:04 +0100
- Subject: Re: [ECOS] pragma code_seg not working
- Authentication-results: mr.google.com; spf=pass (google.com: domain of edgar.grimberg@gmail.com designates 10.182.149.71 as permitted sender) smtp.mail=edgar.grimberg@gmail.com; dkim=pass header.i=edgar.grimberg@gmail.com
- References: <1329917913.75666.YahooMailClassic@web160604.mail.bf1.yahoo.com>
On Wed, Feb 22, 2012 at 2:38 PM, sankar.P <sancar2k@yahoo.com> wrote:
> Hi
> I am working on powerpc processor with ecos operating system.
> I want to place a specific code segment in specific part of the flash.
See if __attribute__ ((section ("section_name"))) fits your need.
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attributes.html
or for an example on how to place the code in RAM, search the eCos
repository for .2ram
Edgar
> I used #pragma code_seg ( section name)
>
> but the compiler is giving warning that
> ignoring the #pragma code_seg
>
> could someone help me on how to acheive this
>
> regards
> sankar
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss