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

Included module order change by export/import LIB

I habe built a project with µVision2 and generated a library (LIB file). I have imported this LIB into another µVision2 project. However, the link order of the imported modules within the LIB is now changed compared to the original order of the modules. This is a problem since I have to keep not only the module order, but also the init_segment should be kept invariant.
How can be kept the order of the included input module from the LIB? (I have used LIB51 LIBRARY MANAGER V4.24)

Parents
  • Yes, I meant C_INITSEG. As I told, in the original project as well as in the new project the modules are alocated absolutely. Thus, other code segments are not changing, but this one. Static variable initialisation take place only in the original project, not in the new one. So I expect no change in C_INITSEG. Therefore I'm confused, why this segment will change by importing the LIB.
    What in my both project is missing is the INIT.A51 module. May be this the reason why in the new project the initialisation order for different imported modules will change?

Reply
  • Yes, I meant C_INITSEG. As I told, in the original project as well as in the new project the modules are alocated absolutely. Thus, other code segments are not changing, but this one. Static variable initialisation take place only in the original project, not in the new one. So I expect no change in C_INITSEG. Therefore I'm confused, why this segment will change by importing the LIB.
    What in my both project is missing is the INIT.A51 module. May be this the reason why in the new project the initialisation order for different imported modules will change?

Children
No data