??? 10/09/09 12:56 Read: times |
#169580 - Large Model on SDCC Responding to: ???'s previous message |
Andy Neil said:
For the benefit of non-SDCC users what, exactly, is the effect of that? If the program includes many global variables and local buffers(arrays), the internal RAM of 8051 can't support function execution(to multiple levels) in which case SDCC throws a warning message of insufficient RAM memory. In such cases all variables can be stored external RAM using "--model-large" option, this compiles the code in large model. For large model to work EXRAM needs to be initiated. [See the section "Memory Models" in SDCC manual for more information] Andy Neil said:
What are the alternatives? Alternatives can be prefixing "xdata" "idata" to declaration of variables and choose to store them in memory other than 128 Internal RAM. This method has a disadvantage during exchanging arguments between functions(This is a purely personal opinion. Don't flame me!). |
Topic | Author | Date |
Timer Capture 2 ISR Execution. | 01/01/70 00:00 | |
Why the Large model? | 01/01/70 00:00 | |
Large Model on SDCC | 01/01/70 00:00 | |
WHICH variable | 01/01/70 00:00 | |
Variable | 01/01/70 00:00 | |
That is a *really* bad name for a variable! | 01/01/70 00:00 | |
word |= 0x0000;![]() | 01/01/70 00:00 |