0

I herd that some C++ compilers can use asembly languige in there programs along side C++, How would I do This? And is there any way to use a compiler as an assembler? <<two questions.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by gerard4143
1

I herd that some C++ compilers can use asembly languige in there programs along side C++, How would I do This? And is there any way to use a compiler as an assembler? <<two questions.

How do you integrate assembly into C++? Generally most compilers provide inline assembly as an extension to the C++ compiler.

How is this accomplished? Most vendors provide a keyword asm or __asm or __asm__ which you can follow with assembly instructions...Here's a link.

http://msdn.microsoft.com/en-us/library/45yd4tzz%28v=vs.71%29.aspx

Is there a way to use the C++ compiler as an assembler? Yes, all C/C++ compilers I used assembled the code.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.