Re: Processors who's stack grows up

From: www.FreeRTOS.org (noemail_at_given.com)
Date: 01/06/05


Date: Thu, 06 Jan 2005 16:17:27 GMT


"Wouter van Ooijen (www.voti.nl)" <wouter@voti.nl> wrote in message
news:41dd6283.156976680@news.xs4all.nl...
> >PIC and 8051 I think. Don't suppose you are interested in these those.
>
> PICs (at least the 12-bit and 14-bit cores) don't have a memory-mapped
> stack, so whether they grow up or down is invisible and hence
> irrelevant.
>

The Microchip PIC18 C compiler uses the POSTINC/POSTDEC registers to effect
a stack and frame.

Regards,

http://www.FreeRTOS.org



Relevant Pages

  • Re: Do buffers always start with the lowest memory address being the first element?
    ... > The C standard does not assume a downward-growing stack, ... > an upward-growing stack. ... C allows but does not require that the array produced ... > machine depends on both the C compiler and the machine. ...
    (comp.lang.c)
  • Re: switch statement, was compiler, status...
    ... Primary Register, Secondary Register, ... Stack, and abit of storage does it. ... This version of Small-C is copyrighted as a revision to Ron Cain's ... Croatia) is "Calculator Compiler" by Senko Rasik. ...
    (alt.lang.asm)
  • Re: back online again...
    ... really "acceptable") convention. ... stack machine, but the design ... target with my compiler (may need a different name for this though, ... most of this code is not likely to ever go to object files anyways... ...
    (alt.lang.asm)
  • Re: 2.6.25-git2: BUG: unable to handle kernel paging request at ffffffffffffffff
    ... since the compiler is totally free to spill and reload the local variable ... So forget about the prefetch, ... variable onto the stack, since it did that volatime memory access through ... the insane "store and immediately reload from ...
    (Linux-Kernel)
  • Re: Partial string loss with sprintf/strcat
    ... As already suggested collecting information about the ... The stack and heap size ... A good suggestion but it's been years since I inspected assembler level ... compiler" that compiles to EM byte-code. ...
    (comp.lang.c)