Hi all,
I need to produce a position independent C function (this function will
be moved dynamically at different address in flash during code
execution). However, this function contain a big switch structure and my
problem is, when the switch became bigger than a certain threshold, the
compiler use branch (br) function instead of the previous and more
suitable jump (jmp, jz, etc) function. This happen even if I specify no
optimization (-O0) in my makefile.
 
Is there someone who know how I can force the compiler to keep the code
(only this C funtion) position independent?
 
Thanks a lot in advance!
Fred
-------------------------------
Frederic Beaulieu, M.Sc.
Research and Development
NewTrax Technologies Inc.
HYPERLINK "http://www.newtraxtech.com/"http://www.newtraxtech.com/
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 4/14/2005
 

Reply via email to