|
-
September 9th, 2011, 11:23 PM
#1
inline assembly and 64 bit usage
Hello all,
Im usually in the managed forum, but I am working on converting a library ove to native c++, and am having a hard time getting visual studio (2010 express) to use the 64 bit registers, I am running 64 bit win 7 with a 64 bit amd processor. While trying to figure it out I came across the following on the msdn site:
"One of the constraints for the x64 compiler is to have no inline assembler support. This means that functions that cannot be written in C or C++ will either have to be written as subroutines or as intrinsic functions supported by the compiler."
So, if I am reading that correctly, I wont be able to convert the 32 bit routines, which are inlined assembly, to 64 bit?
2 questions then, what is an intrisinc function? I know it is a function built into the compiler itself, they almost look like assembly instructions of some sort, if that is what they are, what is the purpose of having them within the compiler itself instead of in a library?
The other question is, when the article mentioned implementing the functions as subroutines, is it talking about having those functions in a seperate asm file? I was hoping to make it easy for me to call into the assembly routines by using inline, but it looks like the wont let it be that easy for me huh?
Anyways, if youd like to see the rest of the article that quote above came from it is:
http://msdn.microsoft.com/en-us/library/wbk4z78b.aspx
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|