Post by Ed
That's a good question. There is a not an easy way to tell if it moved
all the strings to the code segment. My guess is that this just
consolidated the duplicate strings, but all the unique strings may
still be in the data segment.
The /Gf switch help information did not mention anything about moving
strings into a different segment. It only mentioned consolidation of
I think the reason the David asked his question just needs a bit of thinking
about. I'm sure you'll find he's right if you check, and all the strings (or
at least all the consolidated ones) have been moved to the code segment.
What would happen if the consolidated strings were left where they were in
the data segment? It would be quite easy for one part of the program to
change it's copy of the string and then cause every other part of the
program that uses the same string to go wrong.... *because they are shared*.
The code segment is read-only, I believe, so that can't happen if they've