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

combine two projects with diff optimizations

1. I have two projects. One is time critical so I have optimized it with cross-module+level 3+ time.

2. Second is not time critical & want to optimize for size- cross mod+microlib+level2.

Can I combine two projects & debug the combined project.. Also I want to share variables declared between two.

  • I don't think the IDE will let you do this. If you set up the build process manually (e.g. with a Makefile) you can compile different pieces of your code with different compiler settings and then link them together. The debugging information will not be lost. The biggest problem is using two different runtime libraries (the normal one and microlib): this might not be possible at all without some kind of modification of one or both of the libraries.

  • Can I combine two projects & debug the combined project.

    And what exactly do you mean by "combining" two complete projects? What do you expect the "combination" of two complete programs to be?