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 invoke a system call via syscall or sysenter in inline assembly?

How can we implement the system call using sysenter/syscall directly in x86 Linux? Can anybody provide help? It would …

linux gcc x86 system-calls inline-assembly
Writing a Linux int 80h system-call wrapper in GNU C inline assembly

I'm trying to use inline assembly... I read this page http://www.codeproject.com/KB/cpp/edujini_inline_asm.aspx …

c linux assembly x86 inline-assembly
Negative clock cycle measurements with back-to-back rdtsc?

I am writing a C code for measuring the number of clock cycles needed to acquire a semaphore. I am …

c x86-64 inline-assembly overhead rdtsc
How do I do inline assembly on the IPhone?

How is it done? What steps do I need to take and what pitfalls and gotchas are there to consider?

iphone assembly inline-assembly
How to access the control registers cr0,cr2,cr3 from a program? Getting segmentation fault

I have written a program which tries to read from and write to the control registers. The program compiles fine, …

x86 inline-assembly cpu-registers
error: ‘asm’ undeclared (first use in this function)

I am getting the following error during compilation: error: ‘asm’ undeclared (first use in this function) EXCHANGE( s, *(a) ); ^ in …

c linux gcc inline-assembly
How to tell GCC to generate 16-bit code for real mode

I am writing real mode function, which should be normal function with stackframes and so, but it should use %sp …

c gcc assembly x86-16 inline-assembly
Direct C function call using GCC's inline assembly

If you want to call a C/C++ function from inline assembly, you can do something like this: void callee() {} …

c++ c gcc inline-assembly function-call
Equivalent for NOP in C for Embedded?

I use KEIL to compile a program. The program uses the code asm("NOP"); Unfortunately KEIL compiler does not accept …

c embedded inline-assembly keil nop
C/C++ function definitions without assembly

I always thought that functions like printf() are, in the last step, defined using inline assembly. That deep in the …

c++ inline-assembly