is it possible to change "memory model" for a function in an object module for example " small defined in an object" using a linker directive or some other way ?
any idea ?
Read-Only
Author Jon Ward
Posted 8-Dec-2004 09:26 GMT
Toolset C51
RE: small function
Jon Ward
is it possible to change "memory model" for a function
Well, you can specify the memory model for a function. Just type the memory model after the function argument list before the open curly brace.
I meant to change in an object file not in source file. Defined in an object small and I want to change large
Read-Only
Author Hans-Bernhard Broeker
Posted 8-Dec-2004 14:29 GMT
Toolset C51
RE: small function
Hans-Bernhard Broeker
A memory model isn't just "defined" in an object file --- it's hardwired into the object code found in that file. The way to change that is to recompile the file with a different memory model option.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.