|
relocation of functionNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Petr Jurcik Posted 5-Jul-2004 10:28 Toolset C51 |  relocation of function Petr Jurcik Hi, I would like to locate code of the function on the absolute address in a code memmory (analogous to absolute variable location : int code i _at_ 0x2000;) - is it possible in some way? Thanks, Peter | | Read-Only Author Andy Neil Posted 5-Jul-2004 11:05 Toolset C51 |  RE: relocation of function Andy Neil This is the Linker's job - see the Linker Manual | | Read-Only Author Petr Jurcik Posted 6-Jul-2004 04:40 Toolset C51 |  RE: relocation of function Petr Jurcik Thank, I have looked at A51 manual. But I didn't find exactly what i need-I have just found CSEG directive but it doesnt work how I need. I need place the code of one function (from all program) to some specific absolute address (then jump to this address and run the function). Can you give some suggestion about which directives I need for resolution of my problem?..Thank you very much, Bye Peter | | Read-Only Author Hans-Bernhard Broeker Posted 6-Jul-2004 08:22 Toolset C51 |  RE: relocation of function Hans-Bernhard Broeker And since when is A51 the linker? You've referred to the linker manual, explicitly.
In a nutshell, you'll have to:
1) put the function in question into a named section of its own.
2) tell the linker where to locate that particular section. | | Read-Only Author Andrew Neil Posted 6-Jul-2004 08:37 Toolset C51 |  RE: relocation of function Andrew Neil "And since when is A51 the linker? You've referred to the linker manual, explicitly."
Actually, the A51.pdf file is the manual for both the Assembler and the Linker.
Its full title is, "Macro Assembler and Utilities User's Guide" | | Read-Only Author Matthias Hertel Posted 6-Jul-2004 08:41 Toolset C51 |  RE: relocation of function Matthias Hertel Maybe this can help: http://www.keil.com/support/docs/359.htm | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|