| USE_FLINE_JUMPS

Previous | Advanced Options of TIGCC | Next

AMS 2.04 and higher support a method of jumping to other places in the code in a way that is shorter than any other way, but very slow. If you want to use this method, write

    #define USE_FLINE_JUMPS

at the beginning of the program. However, you need to define a minimum AMS version for your program if you want to use this. You can bypass this, assuming that the user has installed an emulator for Line 1111 jumps, by defining `USE_FLINE_EMULATOR`. Alternatively, you can even define `USE_INTERNAL_FLINE_EMULATOR` to make the program install its own handler for Line 1111 jumps.
Note: The Line 1111 handler of the AMS does not support Line 1111 jumps from interrupts. If you want to use your own interrupt handlers for something, you will have to define `USE_INTERNAL_FLINE_EMULATOR`, which includes special support for such jumps automatically if DEFINE_INT_HANDLER is used.
This feature uses the linker-specific symbol __ld_use_fline_jumps.

See also: USE_4_BYTE_FLINE_JUMPS, USE_FLINE_ROM_CALLS