infinit loop is stopping compiler

Beta Testing discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

infinit loop is stopping compiler

#1 Post by MAN » 13 Mar 2011 19:15

Hi ME's

when we add a infinit loop inner main program, in this place the compiler understand that it loop
is the "end." of program. Compiler don't issue warning or errors but code stay truncated.
ofcourse that by logic the program never will go ahead but can be a programmer error or a simple
way to test at this point. i think that compiler never can missing the code after of loop and need
to terminate exactly at 'end.' statement.
I don't remember about this before.
Working with you, for you!
MAN

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: infinit loop is stopping compiler

#2 Post by slavisa.zlatanovic » 15 Mar 2011 15:47

Hi!
Compiler don't issue warning or errors but code stay truncated.
I'll inform our software developers regarding this issue. It will be considered.
Thanks!
Best regards
Slavisa

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: infinit loop is stopping compiler

#3 Post by janni » 15 Mar 2011 16:16

MAN wrote:i think that compiler never can missing the code after of loop and need
to terminate exactly at 'end.' statement.
I'm of the same opinion. There's no need to outguess programmer's intentions - if one want's to skip part of code in compilation, one may do it easily by oneself. Code testing is indeed much harder when whole RAM & ROM organisation may change due to temporary insertion of an infinite loop.

MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

Re: infinit loop is stopping compiler

#4 Post by MAN » 19 Mar 2011 22:08

Hi Janni;
janni wrote: Code testing is indeed much harder when whole RAM & ROM organisation may change due to temporary insertion of an infinite loop.
without doub, we never see what exactly was happened. This too put a "error" in the final .cof generated.
The .cof seem don't find the "end." statement too.

Tks slavisa;
Working with you, for you!
MAN

Post Reply

Return to “mikroBasic PRO for PIC Beta Testing”