Top "Inline-assembly" questions

Assembly that is embedded within a source in another, higher language, such as x86 assembly embedded in C or C++.

How to represent hex value such as FFFFFFBB in x86 assembly programming?

I'm learning about x86 inline assembly programming. I wanted to write mov ecx, FFFFFFBB, however the compiler isn’t recognizing …

assembly x86 hex inline-assembly
Linux assembler error "impossible constraint in ‘asm’"

I'm starting with assembler under Linux. I have saved the following code as testasm.c and compiled it with: gcc …

linux gcc assembly inline-assembly
How to set a variable in GCC with Intel syntax inline assembly?

Why doesn't this code set temp to 1? How do I actually do that? int temp; __asm__( ".intel_syntax;" "mov %0, eax;" "…

gcc inline-assembly intel-syntax
What is the difference between 'asm', '__asm' and '__asm__'?

As far as I can tell, the only difference between __asm { ... }; and __asm__("..."); is that the first uses mov eax, …

c gcc assembly visual-c++ inline-assembly
Code injecting/assembly inlining in Java?

I know Java is a secure language but when matrix calculations are needed, can I try something faster? I am …

java assembly inline-assembly
How to store a C++ variable in a register

I would like some clarification regarding a point about the storage of register variables: Is there a way to ensure …

c++ inline-assembly cpu-registers
What is the use of .byte assembler directive in gnu assembly?

While going through some C code having inline assembly I came across the .byte (with a Dot at the beginning) …

assembly inline-assembly gnu-assembler
Is it possible to access 32-bit registers in C?

Is it possible to access 32-bit registers in C ? If it is, how ? And if not, then is there any …

c assembly mingw inline-assembly cpu-registers
Retq instruction, where does it return

I am unable to understand where the assembly instruction retq returns to. I understand that when my normal code executes …

stack-overflow inline-assembly
x86/x64 CPUID in C#

Related to my other question, please help me debug "An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module. …

c# inline-assembly cpuid