I am using P89V51RD2 and I want a description about the memory models. I want to use the whole 1KB RAM of the controller. I tried to search for the memory model, but was confused by the data given on the page below.
www.esacademy.com/.../c02.htm
It says that you can only access 256 bytes of RAM even though you use LARGE model. Can anyone figure it out?
Oddly enough (if YOU took the time to investigate befor spewing out your bile, you would know) the inefficiency from using LARGE is most prevalent for C code.
Where do I say anything to the contrary? Please provide a quotation, taking care to do so accurately.
here in your retort to my suggestion of not using large: Just for edification try writing a program in assembler, look at the code size, then rewrite it in 'C' and look at the generated assembler, you will be amazed by the difference. the memory model is totally irrelevant in assembler, it only affect C. BTW I have never "looked at the generated assembler", if C is too slow for a given function, who cares what "the generated assembler" looks like, I just reqwrite it in assembler.
Erik
here in your retort to my suggestion of not using large:
Just for edification try writing a program in assembler, look at the code size, then rewrite it in 'C' and look at the generated assembler, you will be amazed by the difference.
You see? No reference whatsoever to memory model. Please try to read and understand posts before you reply to them.