Christopher Smith wrote:

Sure, but the rational way to do that is to provide a function or even better a command that can be invoked to extract that information (typically "-v" or "--version"), which, in turn, means some code which actually touches the string and/or the string being an exported data bit. Either way, super visible so the compiler can't remove it.


Which would be useless if the application can't run well enough to execute the command. Been there, done that. Also, think embedded systems where space is at a premium and adding extra functions is like purchasing a mountain of platinum.

PGA
--
Paul G. Allen
Owner, Sr. Engineer
Random Logic Consulting Services
www.randomlogic.com

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to