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
From your email it is unclear how you have located the PDATA memory. We are not aware of any library bugs. What other errors do you get: you need to start with analysing the first error, and not in the middle of the Linker error list. See also: http://www.keil.com/support/docs/2157.htm Reinhard
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.
What is the first error that you get from the Linker?
View all questions in Keil forum