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

Uncalled Segment/DATA overflow


Does anyone know how to avoid a data segment overflow caused by the local data for uncalled functions being permanently allocated? Better still to prevent such functions being included in the final output at all?

I am using Keil C51 V6.

Thanks
Simon Fisher

Parents

  • Sorry I didn't explain myself very well. I meant function that aren't actually used at all, and are there because more than one project uses the same source file, some functions being required by one project and not the other. The problem is that the local (auto) data in an uncalled function is being allocated out of DATA (not DATA_GROUP). It would also be nice if uncalled functions were not included in the ROM image at all.

Reply

  • Sorry I didn't explain myself very well. I meant function that aren't actually used at all, and are there because more than one project uses the same source file, some functions being required by one project and not the other. The problem is that the local (auto) data in an uncalled function is being allocated out of DATA (not DATA_GROUP). It would also be nice if uncalled functions were not included in the ROM image at all.

Children