<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Turn off LJMP  in Compiler</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14871/turn-off-ljmp-in-compiler</link><description> Is there any way to have the compiler 
NOT generate LJMP&amp;#39;s and other jumps 
that use absolute addresses? 
 
I&amp;#39;m asking because I&amp;#39;m trying to copy a 
Flash loader into RAM, and so I&amp;#39;d like 
all my jumps to be relative, otherwise 
I have to adjust them</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Turn off LJMP  in Compiler</title><link>https://community.arm.com/thread/38900?ContentTypeID=1</link><pubDate>Sat, 29 Jun 2002 21:03:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dda8cfb5-2f14-4593-9952-a579181fb3dc</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;The compiler/linker offer a way to create a function that executes at one address but which is stored at another address.&lt;br /&gt;
&lt;br /&gt;
To execute the function, you must memcpy it from CODE space to RAM or FLASH and then call it or jmp to it.&lt;br /&gt;
&lt;br /&gt;
Contact technical support if you have trouble figuring this out from the manuals.  It&amp;#39;s a little tricky but it works really well.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>