Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by IDK at 2006-11-15 14:1:56[/red][/b][hr]
Anyone tried to use gas inlined assembly? I'm trying to do a simple SSE2 mandelbrot program with inline asm with Dev+C++.
GLubyte* buffer = new GLubyte[wid*heg];
//if(y==0) y=heg, pointer=buffer+wid*heg;
That was the code calling the code I'm trying to write:
As you might see, wid and height in the lea statement are wierd.
Since gas cannot do any preprocesing and the manual:http://sourceware.org/binutils/docs-2.17/as/index.html
suggests that I'll use the built in featurs of my C compiler.
How do I do that?
EDIT: Firefox crashed when I tried to post this...
I posted a workaround instead, but it still doesn't work for constants in the assembly, but almost...
Now it looks neater anyway.
I still have no clue...
0 · ·