I need to port a program from windows to Linux enironment. Because the inline assembly syntax difference between VC and gcc , I need to convert some inline assembly code. Actually I almost knows nothing about asembly things. Can somebody tell me how can I convert the following code (which is for vc compiler) to the inline assembly code for gcc? The problem is that I can not find the equivalence of __declspec( naked ) in gcc inline assembly syntax. Thanks.
/*the following code is for vc compiler, and the compiler generates code without prolog and epilog code */
#define __NAKED__ __declspec( naked )
/* the FullName and DesC are class defined in other place. DExecChunkNext are constant defined in header*/
__NAKED__ int chunkNext(FullName & /*aName*/,int & /*aFindHandle*/,const DesC & /*aMatch*/)
_asm mov eax, DExecChunkNext
_asm jmp dword ptr dispatch