[ECOS] pragma code_seg not working
Edgar Grimberg
edgar.grimberg@gmail.com
Wed Feb 22 14:08:00 GMT 2012
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
More information about the Ecos-discuss
mailing list