We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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
http://www.keil.com/forum/msgpage.asp?Offset=1&MsgID=1972
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