Martin Frb via fpc-devel <[email protected]> schrieb am Fr., 24. Apr. 2026, 17:13:
> See the example below. Complied on Linux and windows. (fpc 3.3.1) > fpc -O- -gw3 project.lpr > > then using > strings project | grep TLIST > > On linux entries for *all* methods of TList are present. > On Windows that is NOT the case. > > Why? > > > > program Project1; > uses classes; > var l: TList; > begin > l := TList.Create; > l.add(nil); > end. > On Windows the internal linker can better omit unused sections while debug information is enabled while with ELF it can't. Regards, Sven >
_______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
