Given the following code:
void foo(void)
{
printf(“Hello\n”);
printf(“Hello\n”);
}
The C compiler will generate code with a single instance of the
“Hello\n” string, thereby saving memory. Unfortunaltely, the C++ will
not. I looked through all the documentation and couldn’t find a switch
to have the C++ compiler behave the same as the C compiler.
Any hints?
- Mario