Top "Assembly" questions

Assembly language questions.

How do I achieve the theoretical maximum of 4 FLOPs per cycle?

How can the theoretical peak performance of 4 floating point operations (double precision) per cycle be achieved on a modern x86…

c++ assembly x86-64 cpu-architecture flops
What is the "FS"/"GS" register intended for?

So I know what the following registers and their uses are supposed to be: CS = Code Segment (used for IP) …

assembly x86 cpu-architecture cpu-registers memory-segmentation
What's the relationship between assembly language and machine language?

Are assembly language and machine language (for the same underlying system) really the same? Are there any differences between these …

assembly architecture operating-system machine-code instruction-set
What are .S files?

I've seen .S files in various projects such as in the Linux Kernel, FreeBSD kernel, or in some other projects. …

assembly
What is a retpoline and how does it work?

In order to mitigate against kernel or cross-process memory disclosure (the Spectre attack), the Linux kernel1 will be compiled with …

security assembly x86 cpu-architecture
What does the BEQ instruction do exactly?

I have the following assembly code snippet I am trying to understand. It is assembly for a MC68332 microcontroller. LOOP …

assembly motorola
Is there a way to insert assembly code into C?

I remember back in the day with the old borland DOS compiler you could do something like this: asm { mov …

c inline-assembly assembly
What are the names of the new X86_64 processors registers?

Where can I find the names of the new registers for assembly on this architecture? I am referring to registers …

assembly x86 x86-64 cpu-registers
Creating (and accessing) an array in MIPS

I'm trying to create an array in MIPS Assembly, and then add all the elements together. However, when I try …

arrays assembly mips mars-simulator
explanation about push ebp and pop ebp instruction in assembly

i used stack in assembly but i didn't got idea about push ebp and pop ebp. .intel_syntax noprefix .include "…

assembly x86 callstack stack-frame