HELP!!! Can the default memory type be overridden for para?

Status
Not open for further replies.

Thomson

Full Member level 3
Joined
Oct 15, 2004
Messages
181
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,298
Activity points
2,400
Hi,
At first, the SMALL compile memory model is used, which of course the internal data is used.

However since the memory space is not enough for current project development; the LARGE compile memory model is used.

In order to enhance the code speed as much as possible, the memory type on the passing parameter is used; however the external memory address is still used (here @DPTR register is used). Of course, the memory type does have effect on the pointer parameter!


I'd like to know whether the un-pointer parameters' meomry addresses can only be determined by the compile meomry model and cannot be overriden by the meomry type specifier!

Thomson
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…