x86
By-reference / by-pointer in assembly code
I wanted to see how calling by-reference differs from by-pointer in C++. However, the g++ compiler (using -O0 -S) produces identical code.[详细]
2023-03-25 21:40 分类:问答GAS: jmp to label results in wrong jump?
I am trying to assembly following program: .text .globl _search2 _se开发者_JAVA百科arch2: pushq%rbp movq%rsp, %rbp[详细]
2023-03-25 10:02 分类:问答Is it possible to use 32 bits registers/instructions in real mode?
I\'m confused about a simple assembly problem when studying some simple os source code. In this website: http://wiki.osdev.org/Babystep7 the following code is to switch from real mode to protected mo[详细]
2023-03-25 07:28 分类:问答Function call cost
The application I am dealing with right now uses some brute-force numerical algorithm that calls many tiny functions billions of times. I was wanderi开发者_Python百科ng how much the performance can be[详细]
2023-03-25 05:52 分类:问答Finding number of operands in an instruction from opcodes
I am planning on writing my own small disassembler. I want to decode the opcodes which I get upon reading the executable. I see the following opcodes:[详细]
2023-03-25 02:57 分类:问答Direction/Sign Extend bit in the encoding of an x86 opcode
In the x86 instruction set the the bit at index 1 of an opcode can either be the direction bit which specifies what the destination and source operands are or it can be a sign extend bit.[详细]
2023-03-25 01:49 分类:问答x86 spinlock using cmpxchg
I\'m new to using gcc inline assembly, and was wondering if, on an x86 multi-core machine, a spinlock (without race conditions) could be implemented as (using AT&T syntax):[详细]
2023-03-24 22:21 分类:问答Switching to User-mode using iret
I am writing a small OS that will execute some code in user mode (privilege level 3).From that user level code, I want to call an interrupt back to the OS that prints a message.Right now I don\'t real[详细]
2023-03-24 19:12 分类:问答Where to start learning assembly - IDE, examples
I have a solid knowledge of C#, I can use C quite well, and I am learning C++. I really would like to learn x86 assembly language for Windows, perhaps MASM, but I don\'t know where to start.[详细]
2023-03-24 14:19 分类:问答Estimating of interrupt latency on the x86 CPUs
I looking for the info that can help in estimating interrupt latencies on x86 CPUs. The very usefull paper was found at \"datasheets.c开发者_运维问答hipdb.org/Intel/x86/386/technote/2153.pdf\".But thi[详细]
2023-03-24 07:32 分类:问答