[GD-General] The cost of function call
Brought to you by:
vexxed72
From: <bac...@ke...> - 2005-07-13 12:25:00
|
Hi I'm working on an improved math library. We are developing for linux and windows. I have a problem with inline assembly codes I can inline an assembly code, but I have to write all the codes 2 times to be able to compile with gcc and MSVC. I know about NASM, but with NASM I loose the inline functions. How do you guys do it? Writing every asm peace 2 or more times? Sacrifice the inline or add one more function call to the assembly function? How expensive is a function call today? Is there a way to convert Microsoft MASM code to GCC GAS? Best Regards Peter Balogh |