The for-statement and while-statement

We can re-write a for-statement into an equivalent while-statement as follows:

    for ( expr1; condition; expr2 )  
       statement(s);                             
   

is equivalent to:

    expr1;
    while ( condition )
    {
       statement(s);
       expr2;
    }
   

We (1) first re-write a for-statement into a while-statement and then (2) construct the program flow and (3) translate into ARM assembler code