You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how the assembly code in the decompile-eval-executable-gcc-obj.json data you released was compiled. I found that your assembly code is different from mine. For example,
char *func0(const char *a, const char *b) {
int len_a = strlen(a);
int len_b = strlen(b);
int min_len = len_a < len_b ? len_a : len_b;
char *output = malloc((min_len + 1) * sizeof(char));
if (!output) return NULL;
for (int i = 0; i < min_len; i++) {
output[i] = (a[i] == b[i]) ? '0' : '1';
}
output[min_len] = '\0';
return output;
}
hi,
I would like to know how the assembly code in the decompile-eval-executable-gcc-obj.json data you released was compiled. I found that your assembly code is different from mine. For example,
Your assembly code:
compile ins:
My results:
Obviously, the strlen function is optimized to the repnz instruction, but your result is not optimized.
Thankx!
The text was updated successfully, but these errors were encountered: