Keil Logo Arm Logo

small function

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Mustafa Kara
Posted
8-Dec-2004 08:46 GMT
Toolset
C51
New! small function
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
New! RE: small function
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.

Refer to:

http://www.keil.com/support/man/docs/c51/c51_le_funcdecls.htm

Jon
Read-Only
Author
Mustafa Kara
Posted
8-Dec-2004 09:37 GMT
Toolset
C51
New! RE: small function
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
New! RE: small function
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.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.