Can someone please translate this high-level code into IA-32 assembly without using any global variables? I just need it as an example for other work I have to do. Thanks. Integers are 32-bit and chars are 8-bit.
class MyString{
char buff[100];
int len;
void deleteChar(char ch){
int to = 0;
for (int from = 0; from < this.length; from++){
char nextch = this.buff[from];
if (nextch != ch){
this.buff[to] = nextch;
to++;
}
}
}
}
Here is what gcc generates when given: