This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Small Memory Model Library Issue


Hello ,

We have a small memory model based library . We are unable to compile the large memory model application using the small memory model library. It won't be possible
 to get the large memory model library because of its unavailability.

The application is meant for TMS320VC5502 DSP processor. We are currently using CCSv4 IDE. I get the following error:

"Specifies small memory model, which is not compatible with large memory model specified in a previous file or on the command line."

It appears that the problem is due to library present with us is in small memory model instead of large memory model. It won't be possible for us to set our application to small
memory model because of its constraints.  

So please suggest a solution which will make use of small memory model library in our application.

Please reply to us ASAP.

Regards,

SJ
  • Hi SJ,

    If your library is in the small memory model and you cannot rebuild the library with large/huge mem model, then you will have to constrain your project to use the small memory model as well.

    See Section 6.1 Memory of spru281g to understand memory model differences/limitations.

    If you are using CCSv4, right click on your project --> Select Build Properties --> Under C5500 Compiler --> Select Runtime Model Options --> Specify memory model (small/large/huge) --> Set to small --> Rebuild project

    Hope this helps,
    Mark