Post Go back to editing

ADSP21489 Stack usage test

I need a program code for ADSP21489 that fills stack memory with appropriate value before main() execution

Parents
  • Hi,

    Stack and Heap are Run-time storage sections: The compiler uses the run-time stack as the storage area for local variables and returns addresses. During a function call, the calling function pushes the return address onto the stack. During a function call, the calling function pushes the return address onto the stack.

    If you define the memory values before the main() execution, it will act as the global variable and it will be stored on a fixed location decided by the compiler.

    incase you need to store the values in the stack, you need to define the memory value as a local variable within the programming blocks or subroutines.

    Since, we could not understand, why you are trying to declare the stack memory value before the main() execution, could you please share with us more details on this.

    Best Regards,
    Santhakumari.K

Reply
  • Hi,

    Stack and Heap are Run-time storage sections: The compiler uses the run-time stack as the storage area for local variables and returns addresses. During a function call, the calling function pushes the return address onto the stack. During a function call, the calling function pushes the return address onto the stack.

    If you define the memory values before the main() execution, it will act as the global variable and it will be stored on a fixed location decided by the compiler.

    incase you need to store the values in the stack, you need to define the memory value as a local variable within the programming blocks or subroutines.

    Since, we could not understand, why you are trying to declare the stack memory value before the main() execution, could you please share with us more details on this.

    Best Regards,
    Santhakumari.K

Children