* [ECOS] pragma code_seg not working
@ 2012-02-22 13:58 sankar.P
2012-02-22 14:08 ` Edgar Grimberg
0 siblings, 1 reply; 2+ messages in thread
From: sankar.P @ 2012-02-22 13:58 UTC (permalink / raw)
To: ecos-discuss
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.
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] pragma code_seg not working
2012-02-22 13:58 [ECOS] pragma code_seg not working sankar.P
@ 2012-02-22 14:08 ` Edgar Grimberg
0 siblings, 0 replies; 2+ messages in thread
From: Edgar Grimberg @ 2012-02-22 14:08 UTC (permalink / raw)
To: sankar.P; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-22 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 13:58 [ECOS] pragma code_seg not working sankar.P
2012-02-22 14:08 ` Edgar Grimberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).