Pular para o conteúdo principal
Knowledgebase
Home
Renesas Brasil - Knowledgebase

Where is stack pointer initially set in the HEW generation source code ?

Latest Updated:09/10/2007

Question:

Please tell me where the stack pointer is initially set in the HEW generation source code ? (Using SH-3,SH3-DSP and SH-4)

Answer:

Initial setup of the stack pointer is at the head of PowerON_Reset function in resetprg.c. Compiler automatically generates it by #pragma entry specification. You can check it by disassembling the head of the PowerON_Reset function.
Suitable Products
C/C++ Compiler Package for SuperH Family