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

howto see what's in the data segment

C51 returns the following error:

*** ERROR C249: 'DATA': SEGMENT TOO LARGE

Rather than switching to the COMPACT or LARGE memory model I would like to manually declare some variables into xdata. I would however like to know what the compiler is actually putting in the data segment and what is taking up the most space. Is there some way I can get this information in the absence of the .MAP file?

Thanks,

Stijn

Parents
  • Figure out how large your DATA segment actually is, and then review the source for the obviously large data structures, and what should be "static const" if you aren't actually changing any of it's content.

    Make the DATA segment temporarily bigger so the linker completes and provides a .MAP, see if the linker has any command line options to provide verbose, or pass related output.

Reply
  • Figure out how large your DATA segment actually is, and then review the source for the obviously large data structures, and what should be "static const" if you aren't actually changing any of it's content.

    Make the DATA segment temporarily bigger so the linker completes and provides a .MAP, see if the linker has any command line options to provide verbose, or pass related output.

Children