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

Regarding Warning L16: Ignore for Overlay process

In one of my code, i faced the problem of Warning L16:Ignore for Overlay Process.
In that code, when i run my program in actual harware, randomly my code go to the inital location and then hangs up, so please provide me the possible solution for that.
is it possible that this problem occurs due to Warning L16?

Thanks

  • In that code, when i run my program in actual harware, randomly my code go to the inital location and then hangs up, so please provide me the possible solution for that.
    To suggest a solution for that, much more information is needed.

    is it possible that this problem occurs due to Warning L16?

    NO

    Erik

  • It usually means the compiler foud a fuction that is not called. If you are calling it via a pointer There are options. If not get rid of it it is wasting memory.

    Either way it is will not cause your program to crash by itself.

  • Hi, i got the solution to remove that warning.
    Actually i am using multiple files for different sections of code, as my total program is around 11,000 lines. In that i am using both, assembly as well as C language. Main program is written in Assembly, and 2 different sections are in C. So when i call some functions from C in assembly sections, except main.asm i can't call C functions like 'extrn code (function)', so i call all that functions in main.asm through 'extrn code' and then define functions in main itself, then call that functions in other .asm sections, which solve my problem.

    Thanks to all, for your kind support

    Chirag

  • So when i call some functions from C in assembly sections, except main.asm i can't call C functions like 'extrn code (function)', so i call all that functions in main.asm through 'extrn code'

    You're talking in riddles, or maybe the language barrier is just too high to allow communication in this case.

    I suggest you do away with the English and show source code instead. For example: what was the code that made you think "I can't call C function like 'extrn code (function)'" --- and how did that fail to work?

    Generally speaking, in a mixed C and assembly project, having a 'main.asm', i.e. the top-level function written in assembly rather than C, tends to be a bad idea. Especially for people who are not 101% sure they know the tricks of this particular trade. The C runtime environment has to be set up properly before C functions will work as they should, and for that, you should allow the tools to start your program via the usual C main() function. Call your assembly functions from C. Avoid calling C from assembly except in the most simple cases, if you don't absolutely have to do it.