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

compilation option

Hello all,
I have one project in microvision keil2.
It is of 89v51rd2 and sst89e516rd2 controller.
I am compiling code in keil2, somehow I am finding short of memory while compiling the code as my variable usage exceeds the capacity.
So I declared memory model of large i.e variable in XDATA under target option.

I am able to compile the code successfully, but some of my data are code, idata.
so I have query whether my variables assigned as code, idata will perform properly even if memory model is XDATA.

Thanks and regards

Parents
  • So for example if the data is "const", the compiler can decide to associate a storage attribute to place the variable in the code space.
    not using Keil right now (doing Renesas with IAR) I can't check, but I recall that Keil does not (always?) put 'const' in the code memory. use the 'code' keyword to guarantee that such 'variables' (variables that can't vary eh?) goes in code memory

Reply
  • So for example if the data is "const", the compiler can decide to associate a storage attribute to place the variable in the code space.
    not using Keil right now (doing Renesas with IAR) I can't check, but I recall that Keil does not (always?) put 'const' in the code memory. use the 'code' keyword to guarantee that such 'variables' (variables that can't vary eh?) goes in code memory

Children