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

Improper fixup problem in library when using compact model

Hello,

my code passes compilation fine when using small or large models. however when changing the project to use compact model, I get the following errors, (which seem like library bugs) (???):

linking...
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (PRINTF)
    SEGMENT: ?PR?PRINTF?PRINTF
    OFFSET:  0068H
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  0087H
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  00AFH
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  00C8H
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  00D5H
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  00F0H
*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\C51FPC.LIB (LOG)
    SEGMENT: ?PR?LOG?LOG
    OFFSET:  010DH
*** APPLICATION REQUIRES RE-TRANSLATIONS! ***
Program Size: data=133.7 xdata=1795 code=15338
Target not created

can you please advise ?

Thanks,
Amit Alon.

Parents
  • Reinhard,

    I have chosen to use the compact model from the project target options. to my understanding, this causes the compiler to use with pdata area section for all automatic variables and parameters passed to the funcions that can't fit into the free registers.

    I have allready read the linked article, and can't use it since i dont know where is the assembler code of library's functions. (I think that it is hidden from me ???).

    The errors that where described in this thread are the only errors that exist, and they vanish if I change the project to use small model, or large model. I will send to you by e-mail the full map file with the errors for more information that may help you understand my preblem better.

    Thanks,
    Amit A.

Reply
  • Reinhard,

    I have chosen to use the compact model from the project target options. to my understanding, this causes the compiler to use with pdata area section for all automatic variables and parameters passed to the funcions that can't fit into the free registers.

    I have allready read the linked article, and can't use it since i dont know where is the assembler code of library's functions. (I think that it is hidden from me ???).

    The errors that where described in this thread are the only errors that exist, and they vanish if I change the project to use small model, or large model. I will send to you by e-mail the full map file with the errors for more information that may help you understand my preblem better.

    Thanks,
    Amit A.

Children