Can an Metro Windows 8 Application contain inline Assembler?
Also is Metro C++ Native, or managed, or can you mix them both like C++/CLI?
Can an Metro Windows 8 Application contain inline Assembler? Also is Metro C++ Native,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Metro style apps use WinRT, which is COM-based replacement of an old WinAPI. You are able to create own WinRT components that can be used from .NET or even from JavaScript – and it costs you no extra effort. As for existing C++ code, note that only a subset of Win32 is provided in WinRT.
It doesn’t matter whether you code in C/C++, C# or JS, when you use WinRT, you don’t directly call the WinRT but it goes through a binding called projection, which is what takes care of your WinRT components to be exposed to the other language appropriately.
“Can an Metro Windows 8 Application contain inline Assembler?”
You are able to embed assembly-language instructions directly in your C and C++ code because your compiler allows you to do that. Look at Inline Assembler as a set of assembly instructions written as inline functions, that are built in the compiler. The fact that you are using WinRT is irrelevant here.
Questions, that could help you:
Why is WinRT unmanaged?
C++, C# and JavaScript on WinRT
What are WinRT language projections?