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 do I select the appropriate memory model?

Hello,

I am creating a solution using the C167 processor, and it is not obvious to me which memory model I should use. It does sound as though this might be a bit difficult to change later, so I would like to get it right the first time.

This is to be used as a port from a previously existing product, so we have a pretty good handle on what appears to be the 2 criteria used to make this decision (code size, and largest object size).

Under this consideration, the "Large" model should fit our project. However, we have already run into a situation where the "far" pointer has to be changed to a "huge" one in order to access memory location 0x700000. Using "far" in this case truncates the upper 2 bits, thus accessing memory locations starting at 0x300000.

So, the bottom line is I need to understand a bit better how I best analyze my current product and compare that to and understand the relevant criteria for choosing the "right" model.

Thanks for your help....

Darrell