Hello, I use the C51 compilers to compile C programs to the 87C51 microcontroller. When i compile my file, te compiler makes the program as endless loop ( The program runs continuously ). How can compile the file without this loop? Thank you very much, Sagi.
If you want to execute the program once use a endless loop like
while(1);
for (;;); does not require the compiler to emit a diagnostic though.
and it compiles nicely to
?C0xxx: SJMP ?C0xxx
"for (;;); does not require the compiler to emit a diagnostic though" Nor does while(1); Stefan
"and it compiles nicely to ?C0xxx: SJMP ?C0xxx" So does while(1); Stefan