This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ARM thumb: why call_via_rX?
- From: Adrian von Bidder <avbidder at acter dot ch>
- To: gcc devel mailing list <gcc at gcc dot gnu dot org>
- Date: 25 Jan 2002 11:25:23 +0100
- Subject: ARM thumb: why call_via_rX?
Heyho!
Why are calls through function pointers made with the call_via_rX stubs
on ARM/thumb? couldn't gcc just generate the bx rX operation inline?
The call_via_rX stubs are problematic for me because one program I
should get to work does some fancy copying of code at runtime - where,
of course, calls with relative addresses fail. Calls through function
pointers have so far (in ARM) worked.
greets from Zürich
-- vbi