I have a MCS51 project which is compiled in small memory model, now I want to add a module to the project, the source files of the module comes from other non-C51 project, so I want to compile these source files with C51 in small memory model, but want to allocate all the global variables in this module to the XDATA ram. I don't want to modify each variable to XDATA one by one, so is there any simple way to implement this requirment?
Your kind support is highly appreciated!
Thanks & Regards aolin
You can still use the small memory model, just as long as you have a couple of larger memory variables that you can specifically force out by specifying XDATA.
The difference between the memory models is not what memory areas that can be used, but what memory areas that are used by default.