|
Regarding Warning L16: Ignore for Overlay processNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Chirag bhatt Posted 25-Aug-2006 06:59 Toolset C51 |  Regarding Warning L16: Ignore for Overlay process Chirag bhatt 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 | | Read-Only Author erik malund Posted 25-Aug-2006 08:01 Toolset C51 |  RE: Regarding Warning L16: Ignore for Overlay process erik malund 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 | | Read-Only Author Andy Neil Posted 25-Aug-2006 11:53 Toolset C51 |  RE: Regarding Warning L16: Ignore for Overlay process Andy Neil Are you using function pointers? | | Read-Only Author Chirag bhatt Posted 25-Aug-2006 23:46 Toolset C51 |  RE: Regarding Warning L16: Ignore for Overlay process Chirag bhatt 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 | | Read-Only Author Hans-Bernhard Broeker Posted 26-Aug-2006 05:26 Toolset C51 |  RE: Regarding Warning L16: Ignore for Overlay process Hans-Bernhard Broeker 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. | | Read-Only Author Neil Kurzman Posted 25-Aug-2006 22:57 Toolset C51 |  RE: Regarding Warning L16: Ignore for Overlay process Neil Kurzman 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. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|