Sujet : Re: C23 thoughts and opinions
De : cr88192 (at) *nospam* gmail.com (BGB)
Groupes : comp.lang.cDate : 13. Jun 2024, 20:07:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4fg41$2dh69$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Mozilla Thunderbird
On 6/13/2024 7:14 AM, Bonita Montero wrote:
Am 08.06.2024 um 07:04 schrieb BGB:
One merit of using separate files is that one doesn't need to recompile to remove the debugging data.
If you're doing a release compile you'd have to re-compile anyway.
A lot of people release debug builds but with the debugging data absent (say, to try to reduce risk of decompilation and similar).
Whether or not this is ideal, depends.
One possible justification (albeit a weak one) is that if one recompiles the program with optimizations turned on, in many cases this may subtly change the behavior of the program (particularly in relation to things like the contents of uninitialized variables and dangling pointers, etc...). Where, sometimes, one may find that the program was only working because the correct data just so happened to be at the right place on the stack, and changing the compiler settings may disrupt this balance...