Topic : how to compile program using only relative jumps?

Forum : ARM

Original Post
Post Information Post
April 15, 2010 - 7:08am
Guest

Hallo all.
I m using STM32F103Zxxx controller

My task is "to make reprogrammable udatable soft"

So the soft is contains of two parts:
- loader
- user soft

The decision of the task is:
- loader copies himself into external RAM
- loader runs from RAM
- loader loads new soft (and new loader) into RAM
- Loader copies new soft from RAM to flash
- loader runs flash-program

So I need the code of the loader, that works in different address spases.... Or else .... How to compile program, that uses commands of relative jumps? What is the directive to compiler?

Im using Ride7

Thank you