MikroC V4.6 possible bug

Beta Testing discussion on mikroC PRO for PIC.
Post Reply
Author
Message
tsenyigming
Posts: 64
Joined: 15 Feb 2009 08:38

MikroC V4.6 possible bug

#1 Post by tsenyigming » 02 Jun 2011 02:51

Below code can't work under optimization level zero. Variable j and k cannot step in. This is V4.6 issue.

//////////////////////////////////////////////////////////////////////

Code: Select all

void main(){
    unsigned char i;
    unsigned long j, k,p;
    long l, m,n;
    
    for(j=1;j<0x80000000;j=j*2+1)
        for(k=1;k<0x80000000;k=k*2)
            p=j/k;
}

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: MikroC V4.6 possible bug

#2 Post by tihomir.losic » 02 Jun 2011 13:14

Hello,

yes, you're right. This was bug, and it was fixed.
Please, download and install new version of mikroC PRO for PIC:
http://www.mikroe.com/download/eng/soft ... 0_beta.zip
and try to run your project.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroC PRO for PIC Beta Testing”