On 03.04.2009 11:51, Stefan Reinauer wrote:
On 03.04.2009 4:16 Uhr, Carl-Daniel Hailfinger wrote:
And to be honest, I want to test how well Urbez' gcc+xmmstack solution works out for the hard targets.
Any idea where to get that one? All I could ever find was a single web page talking about it.
Urbez mailed it to me a few weeks ago with the following explanation:
Remember that in some CPU's you must activate in CR4 the 9 bit, for work correctly.
movl 0x200,%eax #CR4 bit 9 for SSE movl %eax,%cr4
The application is too primitive, but works fine. It uses pcre, for easy parse the *.s generated with gcc, in the Code of xmmstack.c say's the options that i use for generate the *.s assembly code:
gcc -fomit-frame-pointer -fno-stack-protector *.c
if you will you can delete the code for mmx registers, but can be util for another person.
It's attached to this mail.
Regards, Carl-Daniel