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

Re: Long Integer Multiple Error

Think you.
I modified my source :

        printf("%lu * %bu = ", N, M);
        printf("%lu\n", Freq);

        Freq=25690112L;
        printf("%lu * %bu = ", Freq, 4);
        Freq*=4;
        printf("%lu\n", Freq);


It work correctly.
but the Long Integer Multiple fault also.

Run Result:
24500000 * 4 = 4294926936
25690112 * 4 = 1568

Parents
  • but do it run correct on hardwaaare???!!!

    if just on simuletor then think it is simulater do not simelate good!!!!????

    then no be bug of compiler huh????

    A SIMULATOR simulates and as such will NEVER give you the full (and correct) story. Also, as stated before, there is no way it is economically feasible for Keil to simulate every exotic function of all exotic derivatives of the '51.

    such special interest issues is what keeps Keil from taking time for general and important issues such as changing compiler things like
    mov r7,Ralph
    mov a,r7
    to
    mov a,Ralph
    in the COMPILER, not the optimizer

    If you doubt the simulator, try it on the hardware, stick the code on your devboard use the emulator and check. This is so darn simple and would have been resolved in 5 minutes instead of the DAYS these threads has run.

    Erik

Reply
  • but do it run correct on hardwaaare???!!!

    if just on simuletor then think it is simulater do not simelate good!!!!????

    then no be bug of compiler huh????

    A SIMULATOR simulates and as such will NEVER give you the full (and correct) story. Also, as stated before, there is no way it is economically feasible for Keil to simulate every exotic function of all exotic derivatives of the '51.

    such special interest issues is what keeps Keil from taking time for general and important issues such as changing compiler things like
    mov r7,Ralph
    mov a,r7
    to
    mov a,Ralph
    in the COMPILER, not the optimizer

    If you doubt the simulator, try it on the hardware, stick the code on your devboard use the emulator and check. This is so darn simple and would have been resolved in 5 minutes instead of the DAYS these threads has run.

    Erik

Children