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

How to know lib function code size

Hi,
After compiling my project, following library functions are listed in the m51 file.
C:\KEIL\C51\LIB\C51L.LIB (?C_INIT)
C:\KEIL\C51\LIB\C51L.LIB (?C?COPY)
C:\KEIL\C51\LIB\C51L.LIB (?C?CLDPTR)
C:\KEIL\C51\LIB\C51L.LIB (?C?CLDOPTR)
C:\KEIL\C51\LIB\C51L.LIB (?C?CSTPTR)
C:\KEIL\C51\LIB\C51L.LIB (?C?CSTOPTR)

Where can I get the sizes of these functions?.

with regards
Rajesh

Parents
  • "If library function accupies more memory, I am planning to implement in assembly."

    These functions are used internally by the compiler - I don't think they're documented at all for use by developers - let alone custom re-implementation!
    Also, you might be being a bit optimistic in assuming that you can do a better job than Keil - especially without all the necessary support & information...! :-0

    " ... ?C?FPMUL?. Value (C:0106H) means what ?"

    The Linker deals with Addresses - so the "value" of any symbol as far as the Linker is concerned is always an Address.

    In the case of a function, the "value" is the entry point address of the function.

    You can estimate that code size of a function by looking at its start address, and the start address of the next object in code space...

Reply
  • "If library function accupies more memory, I am planning to implement in assembly."

    These functions are used internally by the compiler - I don't think they're documented at all for use by developers - let alone custom re-implementation!
    Also, you might be being a bit optimistic in assuming that you can do a better job than Keil - especially without all the necessary support & information...! :-0

    " ... ?C?FPMUL?. Value (C:0106H) means what ?"

    The Linker deals with Addresses - so the "value" of any symbol as far as the Linker is concerned is always an Address.

    In the case of a function, the "value" is the entry point address of the function.

    You can estimate that code size of a function by looking at its start address, and the start address of the next object in code space...

Children
No data