This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EXTRN CODE ( FUNCTION ) gives L16 if FUNCTION is BIT

uvision 2 v2.40, c51 v7.09, bl51 v5.03 gives:

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?IS_OK_INC_DTARGET_SPD?SPDLIM

spdlim.c has
bit IS_OK_INC_DTARGET_SPD( void )
which returns a bit.

(1) how do I fix this?

Parents
  • Forgot to mention that the a51 file that calls the C file has:

    EXTRN CODE ( IS_OK_INC_DTARGET_SPD )

    If a C file (instead of the A51 file) calls IS_OK_INC_DTARGET_SPD(), there are no warnings or errors.

    If I change 'code' to 'bit', i.e.,

    EXTRN BIT ( IS_OK_INC_DTARGET_SPD )

    there is an a51 A46 CODE-ADDRESS EXPECTED error.

Reply
  • Forgot to mention that the a51 file that calls the C file has:

    EXTRN CODE ( IS_OK_INC_DTARGET_SPD )

    If a C file (instead of the A51 file) calls IS_OK_INC_DTARGET_SPD(), there are no warnings or errors.

    If I change 'code' to 'bit', i.e.,

    EXTRN BIT ( IS_OK_INC_DTARGET_SPD )

    there is an a51 A46 CODE-ADDRESS EXPECTED error.

Children