regarding Inline functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avinash jain
    New Member
    • Aug 2007
    • 12

    regarding Inline functions

    how would I know whether my function is inlined or not ..
    whether the complier has accepted my requested or not..
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Originally posted by avinash jain
    how would I know whether my function is inlined or not ..
    whether the complier has accepted my requested or not..
    I am not clear with your question. Kindly elaborate.

    Regards

    Comment

    • Benny the Guard
      New Member
      • Jun 2007
      • 92

      #3
      I believe what he means is that when using the tag inline this is just a request to the compiler to make it inline, its not guaranteed. So the compiler ha a choice. Also the compiler may inline things not tagged with inline.

      I believe its up to the compiler to decide how to report this. What compiler are you using? Might be able to configure it to give you more feedback on what its doing.

      Comment

      • avinash jain
        New Member
        • Aug 2007
        • 12

        #4
        The complier i am using is g++..
        How to check whether my function is Inline or not..

        Comment

        • avinash jain
          New Member
          • Aug 2007
          • 12

          #5
          compliation time & Inline functions

          I would like to know how much time its has taken for execution of the program ..

          I am using a g++ complier how to check whether my function is inlined or not..

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            avinash jain-

            Please do not double post. I have merged your threads, please keep one question to one thread from now on. Thanks

            Comment

            • weaknessforcats
              Recognized Expert Expert
              • Mar 2007
              • 9214

              #7
              Inline functions are:

              1) defined in the class
              2) have the keyword inline to left of the return type.

              This is no guarantee. It's just a request on your part.

              Comment

              Working...