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
...some functions being required by one project and not the other If you know what modules are going to use the specific function, can't you use pre-processing to enable or disable the function in question?
#ifdef i_want_it //Yor fuction here #endif
If used frequently it is a good practice to build a custom library and header file. Then the linker will include only the required function modules, unused will not be initialized and included in your ROM file.