x86-64
CPUID: Why must MISC_ENABLE.LCMV be set to 0 for some functions? Can I temporarily overwrite it?
I\'m trying to use CPUID, but there are some strings attached.According to sandpile.org\'s CPUID page, CPUID standard functions 0000_0004h and up will only work if the MISC_ENABLE.LCMV flag is set to[详细]
2023-04-01 17:57 分类:问答Loading a dylib from a different architecture
I currently have a program I have compiled in x86_64, it relies on quite a few libraries also compiled in x86_64 (so recompiling them all would be a big project). I am looking to run a i386 dylib, how[详细]
2023-03-31 17:09 分类:问答gcc argument register spilling on x86-64
I\'m doing some experimenting with x86-64 assembly. Having compiled this dummy function: long myfunc(long a, long b, long c, long d,[详细]
2023-03-31 11:47 分类:问答How does the JE instruction work without CMP?
.L10: leal(%rsi,%rsi,4), %edx movsbl%al,%eax addq$1, %rdi leal-48(%rax,%rdx,2), %esi je开发者_开发技巧.L3[详细]
2023-03-31 01:50 分类:问答How do I write the value in RAX to STDOUT in assembly?
I can use syscall for write to print some data in memory to STDOUT: ssize_t write(int fd, const void *buf, size_t count);[详细]
2023-03-30 03:49 分类:问答Compiled gcc4.4.6 on one machine, how to let another machine use it?
I built gcc 4.4.6 (to use CUDA) on a fast server, it takes about 10 min. However, on my own desktop, it takes kinda for ever to compile.[详细]
2023-03-30 02:39 分类:问答Lightweight method to use Amd64 instructions under 32-bit Windows?
For some CPU-bound code using 64-bit variables, it is beneficial to use the Amd64 instruction set rather than x86. How can it be done under 32-bit Windows (e.g. Windows XP SP3)? Of course I assume a m[详细]
2023-03-29 06:25 分类:问答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 分类:问答Learning assembly - echo program name
I am trying to write a simple program in assembly that will write out the name of the program. Using gdb to debug, I\'ve determined that the call to sys_write is returning -14 (EFAULT).I\'ve also been[详细]
2023-03-27 14:15 分类:问答compiling in amd64 mode (visual studio 2010)
guys I want to compile a native 64 bit application. I did configure VS the right way and it works but obvisouly it is cross compiling and not compiling in native amd64 mode as my program still freezes[详细]
2023-03-27 13:49 分类:问答