x86
Get instruction pointer on segmentation fault or crash (for x86 JIT compiler project)?
I\'m implementing the backend for a JavaScript JIT compiler that produces x86 code. Sometimes, as the result of bugs, I get segmentat开发者_JAVA百科ion faults. It can be quite difficult to trace back[详细]
2023-03-28 17:36 分类:问答Is it possible to allocate a segment using the Windows API?
I am wondering if it is possible for a Windows program to allocate a segment descriptor within the process\' local descriptor table. Is there a Windows API function that can 开发者_开发问答install a n[详细]
2023-03-28 13:09 分类:问答What does "rep; nop;" mean in x86 assembly? Is it the same as the "pause" instruction?
What does rep; nop mean? Is it the same as pause instruction? Is it the same as rep nop (without the semi-colon)?[详细]
2023-03-28 08:40 分类:问答SSE: _mm_mul_ps won't multiply 10001 with 10001 correctly but works fine for 10000 with 10000
I have a very simple program to multiply four numbers. It works fine when each of them is 10000 but does not if I change them to 10001. The result[详细]
2023-03-28 07:08 分类:问答x86 assembler: floating point compare
As part of a compiler project I have to write GNU assembler code for x86 to compare floating point values. I have tried to find resources on how to do this online and from what I understand it works l[详细]
2023-03-28 04:59 分类:问答Why are mov ah,bh and mov al, bl together much faster than single instruction mov ax, bx?
I\'ve found that mov al, bl mov ah, bh is much faster than mov ax, bx Can anyone explain me why? I\'m running on Core 2 Duo 3 Ghz, in 32-bit mode under Windows XP.[详细]
2023-03-27 18:04 分类:问答Custom bootloader issues
Im trying to w开发者_开发技巧rite a bootloader for a Hobby OS and have it working great. Nothing Special, just prints a line of text:[详细]
2023-03-27 16:12 分类:问答One Build - multiple outputs (64/32 Bit )
One of projects in our solution references a third party .NET C++ assembly which exists as 64 and 32 bit version. As we wanna provide our application for 32 & 64 bit systems we currently start two[详细]
2023-03-27 11:50 分类:问答Measure CPU speed by counting assembly instructions
Edit: My original example had a silly mistake. After fixing it I still get weird results, though. In my naive attempt to measure my CPU speed the \"brute-force\" way, I made the program below:[详细]
2023-03-27 02:43 分类:问答Endless loop with assember
OK, I\'m new to PC Assembler. I\"m trying to write an program, but it won\'t stop looping. I\'m guessing the ECX register is being modified? How can I fix this? Thanks.[详细]
2023-03-26 05:08 分类:问答