This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: pragma code_seg not working


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


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