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

Data Segment too large

Pardon me for my ignorance as I am completely new to the 8051. I do have a query which I hope someone can help me with.

I am using the 89C51RD2 which has 1KB internal RAM. When I compile my C code in "SMALL" memory model, it gives the error that the data segment is too large. Alternative, the code can only be compiled if "LARGE" memory model is used.

However, I have used this code with a x86 compiler for a x86 processor and the data is actually much less than 1KB?

Thank you in advance.

Why is it that I still get the error that the data segment is too large when my data is actually less than 1KB?

0