Re: [pcre-dev] [PATCH] JIT support with Intel compiler, olde…

Kezdőlap
Üzenet törlése
Szerző: Zoltán Herczeg
Dátum:  
Címzett: danielg
CC: Daniel Richard G., pcre-dev
Tárgy: Re: [pcre-dev] [PATCH] JIT support with Intel compiler, older Solaris
Hi Daniel,

> Only problem is, it's not clear how the assembly should refer to local
> variables ("from" and "to"). I was reviewing this article...


I may misunderstand something here, but I thought you target sparc not x86.

> Why not provide an Intel-syntax equivalent of the AT&T assembly instead of
> an error? There may be other 64-bit compilers that aren't handled by the
> above cases.


It would be a speculative fix, which may not work.

> Anyway, I still get segfaults on 32-bit (x86) Linux with the Intel
> compiler whether I use stdcall or cdecl (but not as badly as fastcall).
> Would it help if I provided you with built code from this compiler, so you
> can see exactly what it's putting out?


Perhaps some functions can reveal how it works.

int test(int a, int b, char* c) {
retrun a + b + strlen(c);
}

Could you try this with various calling conventions and send me the assembly?

Regards,
Zoltan