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

Programmsize restriction within codeblock

Hello,
are there any restrictions of codesize within a codeblock?

For examle the first code doesn't work:

if ( value ){
        .
        .       many Codelines
        .
}


If i shorten the code above, then it works. i couldn't find out the border to the codesize within the block.

But this Code works correct:

if ( value ){
        myfunction();
}

void myfunction (void){
        .
        .       many Codelines
        .
}

In both cases i don't get any error-messages from the compiler, while compiling.

Thanks for help
Christian Tauschek

Parents
  • Hello to all,
    now i've found out the problem.
    If the code exceeds 2048 Bytes, then it doesn't work.
    If my code has exactly 2048 Byte, then it works and it is enough to insert only one _nop_ to crash the Code.
    I am trying the demo. But i thought, i will get a compiler-message if the demo-codesize ist exceeded.
    But i didn't.

    Thanks for help
    Christian Tauschek

Reply
  • Hello to all,
    now i've found out the problem.
    If the code exceeds 2048 Bytes, then it doesn't work.
    If my code has exactly 2048 Byte, then it works and it is enough to insert only one _nop_ to crash the Code.
    I am trying the demo. But i thought, i will get a compiler-message if the demo-codesize ist exceeded.
    But i didn't.

    Thanks for help
    Christian Tauschek

Children