Long jumps: how to force compiler to use BX and not BL instruction ?

Hi,My code is placed far than the 24 bits offset used in the BL instruction but the compiler is generating BL and not BX as jump instruction. How can I force long jumps (BX) with netarm compiler ? Marcelo

This is more of a Green Hills issue rather than Net+Os. You might want to check this out with them.

But I though “Home » Forums » Green Hills” was about Green Hills, no ? I have tried to post this question using my paid NS support but I didn’t receive any answer. But ok: I’ll try GHS support.

I discovered that the GHS C Compiler 2.0.1 have this annoying bug. Use the version 3.5 or higher.