Personal tools
You are here: Home Issue Tracker DC motor controller: stack overflow
Document Actions

#34 — DC motor controller: stack overflow

State Resolved
Release: 0.2.2
Area Core Software
Issue type Bug
Severity Important
Submitted by Sébastien Lelong
Submitted on 2008-10-13
Responsible Sébastien Lelong
Target release: 0.3
Return to tracker
Last modified on 2009-02-25 by Sébastien Lelong
When compiling the DC motor controller program, there's a stack overflow (11 out of 8). No error from jalv2 compiler. This works, and I was thinking jalv2 compiler was handling this overflows by using a software stack. This is not the case.

According to some people in jallist, it works, randomly. Weird behavior might appear. Impossible to debug. So the stack must be handled correctly: using "pragma inline", or even "pragma nostack" latest jalv2 2.4h feature.
Added by Sébastien Lelong on 2009-02-25 07:53
Issue state: unconfirmedopen
Added by Sébastien Lelong on 2009-02-25 07:53
Issue state: openresolved
Using "pragma inline", stack can be saved. The whole has been migrated to jallib, and now seems less greedy. Needs jalv2 2.4i compiler (previous version pragma inline related bug)

Powered by My Hands Powered by Jalv2 Hosted by Google Code