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

memory model types

I need help regarding memory models.
If I configure my project as large momery model and I want to use a function as small memory model, the error occurs.."redifinition of function"...
please help me for the same

Parents
  • There could be many reasons for such an error - possibly unrelated to the memory model!
    You need to post the smallest example that demonsatrates the problem, complete with the full text of all error messages.
    Be sure to follow the instructions for posting code:
    http://www.keil.com/forum/tips.asp
    Use copy-and-paste; do not re-type the code!

    One possibility is that you have a function prototype that doesn't match the function definition.

    Why do you want to do this?
    I'm not even sure that it'll work at all - after all, there are different versions of the 'C' standard library for each model...

    It'd probably be best to make your entire project either SMALL or LARGE, and then specifically define the memory space where required
    http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm

Reply
  • There could be many reasons for such an error - possibly unrelated to the memory model!
    You need to post the smallest example that demonsatrates the problem, complete with the full text of all error messages.
    Be sure to follow the instructions for posting code:
    http://www.keil.com/forum/tips.asp
    Use copy-and-paste; do not re-type the code!

    One possibility is that you have a function prototype that doesn't match the function definition.

    Why do you want to do this?
    I'm not even sure that it'll work at all - after all, there are different versions of the 'C' standard library for each model...

    It'd probably be best to make your entire project either SMALL or LARGE, and then specifically define the memory space where required
    http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm

Children
No data