Discussion forum for the BasicX family of microcontroller chips.
|
If one includes SerialPort_24.bas in a project and uses, say, 2 routines in it, is it reasonable to assume that the compiler includes code only for the two used routines? Just curious. Vic _________________________________________ Victor Fraenckel Home of the WindReader Electronic Theodolite Read the WIND |
|
|
|
> From: "Victorf" <> > > If one includes SerialPort_24.bas in a project and uses, say, > 2 routines in it, is it reasonable to assume that the > compiler includes code only for the two used routines? Yes, that's correct, unless those 2 subprograms call other subprograms in the module. This applies to all subprograms -- the compiler culls any that are never called, regardless of whether the optimizer is turned on. You can look at the MPP map file to get a list of subprograms that are actually included in a program. The list is toward the bottom of the file, and also includes subprograms from the system library. -- Frank Manning -- NetMedia, Inc. |