Hardware stack watch

Post your requests and ideas on the future development of mikroBasic.
Post Reply
Author
Message
david68
Posts: 40
Joined: 20 Mar 2008 13:13
Location: Belgium

Hardware stack watch

#1 Post by david68 » 04 Apr 2008 07:45

Hi,

(I repost here some of my wishes I already talked about elsewhere. Only to keep them at the right place...)

I really miss a runtime Hardware Stack watch window (as in MPLAB) in the software debugger ....

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Hardware stack watch

#2 Post by zristic » 04 Apr 2008 08:26

david68 wrote:I really miss a runtime Hardware Stack watch window (as in MPLAB) in the software debugger ....
What do you want that we show in that window?

david68
Posts: 40
Joined: 20 Mar 2008 13:13
Location: Belgium

#3 Post by david68 » 04 Apr 2008 08:44

Thanks for your quick reply !

Basically, the same thing as in MPLAB: level of stack being used, and return locations.

Of course, the return adress as itself may be of less importance with a high-level language such as yours (it could be replaced by the name of the sub being called), but at least the stack usage.

The call tree is a good tool, but it may not be enough, especially in controlled recurse calls, or complex multi-level interrupts.

I think it could be easy to implement in your debugger:
- You can detect at runtime each "CALL" instruction or interrupt of the application and add the name of the sub to the stack
- Detect all RETURN or RETFIE, and clear last level.

Any other idea is, of course, welcome.

Post Reply

Return to “mikroBasic Wish List”