??? 10/06/06 08:58 Read: times |
#125887 - Uncalled segments problem with library |
Hi everyone,
I am developing an API library for an 8051 chip. The library should offer an abstraction to the application developer, so he doesn't have to go deep to the HW knowledge. Currently I am developing the lib in Keil but the source code should be also SDCC compatible. I have problems with the uncalled segments. The application usually doesn't use all the functions from the library, so I get these warnings from Keil compiler. I have found an option in the LX51 linker: REMOVEUNUSED, but it won't work with SDCC. I think I could avoid these warning if I would place all my functions to a separate file. But I am not quite keen on with this idea. Anybody has any experience or idea how to solve this problem? Does anybody know what is the structure of is the stdio or other standard libraries in Keil? I will apriciate any answers, thanks a lot. |