Tool/software: TI C/C++ Compiler
Unified memory model is mentioned inn spru514p_cl2000_compiler, what is it?
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.
Tool/software: TI C/C++ Compiler
Unified memory model is mentioned inn spru514p_cl2000_compiler, what is it?
The C28xx devices are descended from a long line of C2xxx devices which started in the 1980's. Those early devices had separate memory buses for code and data. These buses were connected to physically separate memory blocks. Thus, it actually was possible for a specific address on PAGE 0 to have different contents than that same address on PAGE 1. In theory, this same separate connection of memory buses is possible on C28xx devices, though it is a rarely (bordering on never) used feature. If there is the slightest doubt, check the documentation specific to your device.
When you use the compiler option --unified_memory, you tell the compiler both memory buses are connected to the same physical memory. This allows the compiler the freedom to use a few more instructions, which are detailed in the compiler manual.
Thanks and regards,
-George
So what is exactly the difference between the two compiler options; -ml and -mt. I think there is subtle difference between unified memory and large memory model. Can anyone please elaborate?
Large memory model is no longer supported in the C28x compiler. Support for small memory model only makes sense for older variants of the C2000 CPU family which are no longer available. So, the default was changed from small memory model to large memory model. The option -ml is still accepted by the compiler, but has no effect.
Thanks and regards,
-George