This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Function Calls being ignore

Hi, What would be the reasons for a program ignoring some functions that are supposed to be called. They are defined and they are called several times in the program, but there is one specific section skipping them.
Why?
Thank you

Parents
  • "What is that mean?"

    The compiler may decide there is no point in executing some of your code. As an incredibly contrived example:

    int a=4;
    int b;

    b=a;
    b=a;

    printf("b equals %d",b);

    it is likely that no code would be generated to copy a into b the second time. Real world examples are often not as obvious as this.

    Stefan

Reply
  • "What is that mean?"

    The compiler may decide there is no point in executing some of your code. As an incredibly contrived example:

    int a=4;
    int b;

    b=a;
    b=a;

    printf("b equals %d",b);

    it is likely that no code would be generated to copy a into b the second time. Real world examples are often not as obvious as this.

    Stefan

Children
No data