C function stack and core local memory

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Re: C function stack and core local memory

Postby ysapir » Tue Aug 06, 2013 2:39 am

Mike,

Usually, it is best to just compile a C function that handles many (>4) inputs and uses them all to calculate something - say, their sum - and return this calculation result. Then, look at the generated assembly (e-objdump -D) and see how the compiler does it. You should compile w/o optimization to really see how the stack works.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: C function stack and core local memory

Postby hewsmike » Tue Aug 06, 2013 2:48 am

OK, thanks. :-)
hewsmike
 
Posts: 85
Joined: Mon Dec 17, 2012 3:20 am

Previous

Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 25 guests

cron