Why is there a difference in the output produced when the code is compiled using the two compilers gcc
and turbo c
.
#include
From the gcc manual page :
-fmerge-constants
Attempt to merge identical constants (string constants and floating point constants) across compilation units.
This option is the default for optimized compilation if the assembler and linker support it. Use -fno-merge-constants to inhibit this behavior.
Enabled at levels -O, -O2, -O3, -Os.
Hence the output.