Tool/software: TI C/C++ Compiler
My working tool is CCS8.0.0 with compiler version of TI v18.1.1.LTS.
In the linker command file, I noticed that the stack size has been set by the "-stack = 0x0008" command line by someone else.
And the generated map file shows that the stack size does have been set to only 8 bytes as in the picture below.
But there's no doubt that the actual size of stack is much larger than 8 bytes. The location of stack bottom is 0x87FFFFF0, when I just run into the "main" function, the stack top has grown to addr 0x87F8A9E8 which tells the size of stack is already nearly 469KB as shown in the picture below.
So my problems are that:
1. Is the "-stack = anysize" command useless in linker command file?
2. How can I define the size of stack explicitly and accurately?
I have attached the linker cmd file and corrsponding map file.
Thanks and best regards!

