I have several projects written under Visual C++ that have in-line assembly optimisations. The project compiles under Linux via gcc, but these optimisations are not used, hence only the genric C++ version of the code is complied. I was wondering if there are Linux compilers that support Visual Studio style in-line assembly syntax? I know that Intel C/C++ Compiler (Linux version) supports it, but I need a free compiler. Thanks in advance!
hey dom,
i did a google search and found this:
[url]http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html[/url]
I thought about using conversion scripts/tools, but meh .. again it's too much hassle. Some tools don't even support the full MASM/VC++ syntax. I want to keep ASM maintenance at minimum.
Btw, most of the ASM code are MMX/SSE optimisitions for image processing, which gives a huge performace boost over the generic C++ code.
Oh well, looks like I have to stick with the Intel C/C++ Compiler...
You could always write the optimised functions totally in assembly language, then compile them into obj files and link them with your project.