This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]