I was using Borland's compiler.. There is an option that will make it consolidate strings (-d merge duplicate strings). This will consolidate the strings into just the 2.
Actually, I was asking about the option which you said left or kept the clean-up of the parameters to the printf() function. with optimizations on, I don't think folding duplicate strings would alter the generated code that either of us has posted. I'm curious about what option you to force the compiler to keep the stack cleanup between the calls.
This post has been edited by mikeblas: 16 June 2009 - 06:56 AM