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

Target not created

I keep getting a 'Target not created' error at the end of compile. When I comment out a printf, everything is fine. What is the problem?

Thank you.

Parents Reply Children
  • The problem disappears after you either remove all the uncalled functions, or make them callable. One thing I still don't understand is why a lot of uncalled functions in different modules cause an overflow while a lot of callable functions don't??

  • "One thing I still don't understand is why a lot of uncalled functions in different modules cause an overflow"

    You need to read-up on Data Overlaying in the manuals.

  • "One thing I still don't understand is why a lot of uncalled functions in different modules cause an overflow while a lot of callable functions don't??"

    For 'compiler' read 'compiler/linker':

    The compiler builds a call tree for your program. Based on this tree it can use the same physical memory locations to store local variables from different functions. This is called 'data overlaying'. If you don't call a function the compiler decides that it can't risk overlaying the local variables in case the function is called via a pointer, which it can't see. In this case unique memory locations are allocated for that function, meaning that uncalled functions use up more memory space.

    A feature that I'd like to see is some method of telling the compiler to completely ignore uncalled functions as this problem is a real nuisance during program development.

    Stefan