This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Calculating the Stack Space and the code size

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

Parents
  • 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

Reply
  • 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

Children