--- uae/src/cpuopti.c 2018/04/24 16:38:39 1.1.1.1 +++ uae/src/cpuopti.c 2018/04/24 16:38:53 1.1.1.2 @@ -37,7 +37,7 @@ static char * match(struct line *l, cons while (isspace(*str)) str++; - if (strncmp(str, m, strlen(m)) != 0) + if (strncmp(str, m, len) != 0) return NULL; return str + len; } @@ -61,7 +61,7 @@ static void do_function(struct func *f) while (!match(fl, "op_")) fl = fl->next; fl = fl->next; - + s = match(l, "addl $"); s2 = match(fl, "subl $"); if (s && s2 && strcmp(s,s2) == 0) { @@ -123,6 +123,12 @@ int main(int argc, char **argv) { char tmp[4096]; +#ifdef AMIGA + char *cmd="machdep/cpuopti"; + if(execl(cmd,cmd,NULL)==-1) perror(cmd); + return 10; +#endif + for(;;) { char *s;