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

Static Library in keil

I have the ready-to-use code bundle for the controller i use. It came along with the development board.

The question is, should i create a *.lib file (with all the source files added to it)?
will it reduce the size of code as compared to adding all the source files?

kindly note that, I dont know how create a *.lib file in keil. will read the documents available on keil.
but m cautious about investing time if it does not have any specific advantage.

Parents
  • You don't specify an architecture. I'll assume ARM for my convenience.

    The library you'd need to create as separate project.

    I think your easiest route is just to dump all the source into one project, select "One ELF Section per Function", and let the linker do the dead code elimination, which it's pretty good at.

Reply
  • You don't specify an architecture. I'll assume ARM for my convenience.

    The library you'd need to create as separate project.

    I think your easiest route is just to dump all the source into one project, select "One ELF Section per Function", and let the linker do the dead code elimination, which it's pretty good at.

Children