What is this operator?

?:

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 1148 Views - Last Post: 16 June 2009 - 06:54 AM Rate Topic: -----

#16 mikeblas  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 44
  • View blog
  • Posts: 390
  • Joined: 08-February 08

Re: What is this operator?

Posted 15 June 2009 - 08:42 PM

View PostNickDMax, on 15 Jun, 2009 - 06:30 AM, said:

As for the clean up I left the options to not clean up the constants so that it demonstrated that both expressions were evaluated by the compiler.
Which option is that? Which tool set are you using?
Was This Post Helpful? 0
  • +
  • -

#17 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: What is this operator?

Posted 15 June 2009 - 09:16 PM

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.
Was This Post Helpful? 0
  • +
  • -

#18 mikeblas  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 44
  • View blog
  • Posts: 390
  • Joined: 08-February 08

Re: What is this operator?

Posted 16 June 2009 - 06:54 AM

View PostNickDMax, on 15 Jun, 2009 - 08:16 PM, said:

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

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2