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

Wrong address calling library function

Parents
  • Note: This was originally posted on 18th December 2009 at http://forums.arm.com

    Its slightly strange that the compiler isn't just using a BL,
    which suggests there might be some interesting compiler options involved,
    or that there is something unusual about the "variables" involved.
    Does the following further simplified code have the same problem in your environment?
    (It just compiles to a BL using the same version of GCC outside of CoBuilder):

    volatile unsigned long long a;
    volatile unsigned int b;
    volatile unsigned long long c;

    int main(void)
    {

    while(1) {
      c = (a * b) / 1000000;
    }

    return 0;
    }


    hth
    s.
Reply
  • Note: This was originally posted on 18th December 2009 at http://forums.arm.com

    Its slightly strange that the compiler isn't just using a BL,
    which suggests there might be some interesting compiler options involved,
    or that there is something unusual about the "variables" involved.
    Does the following further simplified code have the same problem in your environment?
    (It just compiles to a BL using the same version of GCC outside of CoBuilder):

    volatile unsigned long long a;
    volatile unsigned int b;
    volatile unsigned long long c;

    int main(void)
    {

    while(1) {
      c = (a * b) / 1000000;
    }

    return 0;
    }


    hth
    s.
Children
No data