 | Discussion Forum |  |
|
|
Calculating the Stack Space and the code sizeNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Mohit Gupta Posted 26-Jun-2001 18:58 GMT Toolset None |  Calculating the Stack Space and the code size Mohit Gupta 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.
Mohit | | Read-Only Author Jon Ward Posted 26-Jun-2001 20:53 GMT Toolset None |  RE: Calculating the Stack Space and the code size Jon Ward Since you didn't specify, I'll assume you're using the C51 tools.
1) Is there any method of determining whether the stack space allocated is enough for the program execution.
http://www.keil.com/support/docs/192.htm
2) Is there any feature in UVision 2 to determing the code size generated by the hex file.
No. There is no feature in uVision2 to determine the number of bytes represented by a HEX file. Note that there are ways to find the size of your program using the MAP file.
If you want to use the HEX file, I suggest you convert the HEX file into a flat BINARY file and check its size. That will be the number of bytes of CODE space that are required.
You may download a HEX to BINARY utility from:
http://www.keil.com/download/docs/hex2bin.zip.asp
Jon
| | Read-Only Author Jim Leifker Posted 26-Jun-2001 22:41 GMT Toolset C51 |  RE: Calculating code size Jim Leifker http://www.keil.com/forum/msgpage.asp?Offset=1&MsgID=1972 | | Read-Only Author Mohit Gupta Posted 27-Jun-2001 03:41 GMT Toolset None |  RE: Calculating the Stack Space and the code size Mohit Gupta Does it mean that the C51 doesnot take care the amount of stack space required? This can lead to a chaos during program execution if any variables were defined at that location.
If we donot use the interrrupts, then what is the criterion for allocating the stack space?
Mohit | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|