Running a section of code from internal memory
Scott Wood
scottwood at freescale.com
Fri May 9 01:33:15 EST 2008
On Thu, May 08, 2008 at 05:06:46PM +0530, Sanal Kumar V K wrote:
> A small part of the code needs to run from the on-chip "L2 scratch" for
> getting optimum performance. I would really appreciate if some could
> give me some pointers regarding the following questions:
>
> 1. Is #pragma section supported by gcc.
> The compiler prints this warning "ignoring #pragma section" and the
> pragma is ignored indicating that it is not supported. Is there any way
> I can get the pragma working for gcc or any alternative?
__attribute__((section("section name")))
-Scott
More information about the Linuxppc-embedded
mailing list