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

HOW CAN CHECK MEMORY MODEL OF MY PROJECT

Hi, i am a beginner and i have dumped already existing code into my project as i need it. But when i have compiled it, it is displaying a message as "error : 'DATA': SEGMENT TOO LARGE".
some one in the past thread has said that check your memory model of your project. Now, how do i can check memory model of my project and how i can extend it or increase.

please reply fast...

  • Sorry, but if I don't work well under pressure, it might be better if I don't reply too fast...

    What did you figure out when you looked about memory models in the compiler manual?

    Next thing is that memory models normally affects the code size more than the data size - unless you play a lot with pointers.

    Have you made an analysis on your required need for RAM? And how does that match the amount of RAM available in your selected processor? Remember that not all RAM is automagically available to your code - the compiler needs to consume a bit of RAM for stack and parameter passing too.

  • unless you have XRAM (internal or external) you can not use the LARGE model.

    If you have XRAM it is still not a good idea to go LARGE, assigning e.g. buffers to XDATA is a far better solution

    Erik

  • Thank you for your valuable information...

    Sorry as my project dead line was close, i asked it and said as urgent.