• Calculating the Stack Space and the code size
    1) Is there any method of determining whether the stack space allocated is enough for the program execution. 2) Is there any feature in UVision 2 to determing the code size generated by the hex file...
  • Calculate free remaining stack space
    Hi, I would like to calculate the free remaining stack space during run time. I tried to access the r13 register with: LPSTR pcSP; { register volatile int mySP __asm("sp"); pcSP= (LPSTR)mySP;...
  • Calculation of stack sizes...
    Hallo I wonder if there are any good methodes of calculating the stack size for ex user or IRQ stack size? Is there any "best practice"? Or is it just add up the size of data structures and/ot...
  • Incorrect stack calculation (using R0)
    Hello, I have a project (C166 V5.05/XHUGE memory model), where a local variables is incorrect (Verified with a hardware debugger). The problem seems to be related to the use of the user stack when...
  • CALCULATE FACTORIAL
    HOW DO I CALCULATE THE FACTORIAL OF A NUMBER?