I am writing a performance-critical, number-crunching C ++ project, where 70% of the time used by 200 lines Goes core module
I want to customize the core using the inline assembly, but I am totally new on this. However, I know in some x86 assembly languages used by GCC and NSM.
All I know is:
Let me codec directions to _asm {}
where I want them.
Problem:
- I have no clue where to start from when my inline assembly comes into playback?
You can name names of variables by their name and copy them to register Please. Here is an example from MSDN:
int power2 (int num, int power) {__ss {mov eax, num; The first argument mov ecx, get power; Get second argument, SL AX, CL;
Returns with result in EX = EX * (for the power of 2 CL)} // may be interesting to you too.
Comments
Post a Comment