Avoiding warning L16

Hello,

Is there a way to avoid the following warning: Warning L16: uncalled segment, ignored for overlay process? I'm not talking about the Disable warning numbers you have in the options of a project...

I know what the overlay process does, but if the function is indeed not called (and there could be reasons not to call a function for a certain application), is there not a kind of 'dead code remover' who can check if a function is called or not?

If so, is this function not able to inform the compiler just to ignore this function and not to generate the warning?

Rgds,

Geert

Parents
  • For this I wrote a simple program that scans L51 listing for warnings 16. If there are warnings 16, it writes out an overlay description that binds all unreferenced segments (warning 16) to main, like this: OVERLAY( main ! (seg1,seg2,etc))
    Then I re-link with this overlay directive - no more warnings.

    My app also generates some warnings 15 (multiple called segment) that actually should be ignored. So my program searches for these as well, and excludes from overlaying by OVERLAY( segname !*)

    Fast, dirty, practical :)

    P.S. - I made this thingie in the dark days of C51 v 3.20 - may be modern linkers have some new controls for this.

Reply
  • For this I wrote a simple program that scans L51 listing for warnings 16. If there are warnings 16, it writes out an overlay description that binds all unreferenced segments (warning 16) to main, like this: OVERLAY( main ! (seg1,seg2,etc))
    Then I re-link with this overlay directive - no more warnings.

    My app also generates some warnings 15 (multiple called segment) that actually should be ignored. So my program searches for these as well, and excludes from overlaying by OVERLAY( segname !*)

    Fast, dirty, practical :)

    P.S. - I made this thingie in the dark days of C51 v 3.20 - may be modern linkers have some new controls for this.

Children
More questions in this forum