Connect with us

hardware and software stack

Discussion in 'Microcontrollers, Programming and IoT' started by juantravel, Nov 11, 2010.

Scroll to continue with content
  1. juantravel


    May 14, 2010
    I was reading the manual for hitch c compiler. I came across software stack. The pic im using is the 16f628a and that has a hardware stack that's 8 levels deep. The allows me to nest up too 7 functions. Which is more then i need. Since the hardware stack only stores the return address's, then I'm assuming that the software stack(compiled stack) allows for local variables, arguments, and return to be implemented. But then you would have to emulate a stack for every function. Is that correct?
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    Jan 21, 2010
    There are other ways to pass parameters and to handle local variables. You can sometimes use registers, for example.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day