IvanHoe
12-02-2002, 11:51 PM
I have a bunch of MMX functions that I build for Visual C++ that look like this:
static __declspec(naked) void __fastcall SomeMMXFunction()
{
__asm
{
// asm code here.
...
}
}
I'd like to port this to GCC but I need information on controlling the way a function is called and the prolog/epilog code that is generated. All of the functions were designed to be called from assembly code using registers as parameters ("__declspec(naked)" instructs Visual C++ to not generate prolog/epilog code). Does anyone know if this is even possible in GCC and where I can find the documentation for it? Better yet, can GCC use assembly code directly and where can I get information on it?
static __declspec(naked) void __fastcall SomeMMXFunction()
{
__asm
{
// asm code here.
...
}
}
I'd like to port this to GCC but I need information on controlling the way a function is called and the prolog/epilog code that is generated. All of the functions were designed to be called from assembly code using registers as parameters ("__declspec(naked)" instructs Visual C++ to not generate prolog/epilog code). Does anyone know if this is even possible in GCC and where I can find the documentation for it? Better yet, can GCC use assembly code directly and where can I get information on it?