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

error C172: '?DT?main': segment too big

I got this message "error C172: '?DT?main': segment too big (act=137, max=128)" when I build my program. I dont know what's the problem can you give me a solution?

By the way how can I put code into the code segment or variables into RAM?

Thanks a million!

Parents
  • But are you aware, that switching to the large memory model isn't the only solution to your problem. That it's possible to just move individual variables to XDATA instead of forcing the compiler to switch all defaults by changing the memory model.

    You want large variables in XDATA. But you don't want small and often used variables to also be forced to XDATA.

Reply
  • But are you aware, that switching to the large memory model isn't the only solution to your problem. That it's possible to just move individual variables to XDATA instead of forcing the compiler to switch all defaults by changing the memory model.

    You want large variables in XDATA. But you don't want small and often used variables to also be forced to XDATA.

Children