Hello there.
I don't know if this should actually be posted in any of the C/C++ forums, but it is mainly an Assembly question so I take my chances here.
In C/C++ it is possible to declare local variables as:
if(statement){
int var;
// Use of the variables
}else{
// Not using var
}
Compared to
int var;
if(statement){
// Use of the variable
}else{
// Not using var
}
But when we in class learn to translate C into assembly we have to declare all variables in a prologe (using LEAS). So my question is how the above examples would translate into assembly, is there any difference?