6,120 questions
Best practices
1
vote
2
replies
115
views
Loading a byte: Partial register stall for intel cpus (r8 vs r64)
My assembly program reads characters in a text file by loading them one by one in register 'al'. However I sometime need to use rax fully, and I think this causes a partial register stall. Now I think ...
1
vote
1
answer
192
views
How to compile 64-bit binaries for latest versions of OpenSSL (3.5.x) on the Windows 10
I am trying to compile latest version of the OpenSSL on Windows 10 machine (version 3.5.4).
Prerequisites are:
I ran x64 Native Tools Command Prompt for Visual Studio 2022 Community Edition
I ...
0
votes
0
answers
63
views
How does NuGet choose package assets for x86 vs x64 project targets — will it download/reference a 32-bit package when the project is set to x86?
I'm trying to understand how NuGet selects and references package assets when a project targets a specific CPU architecture (x86 vs x64). My specific questions are:
If my project platform target is ...
0
votes
0
answers
77
views
Locate return address into EXE from DllMain
I'm writing a 64-bit Windows DLL that needs to locate, on the stack, the return address that belongs to the host EXE (the place in the EXE that called into my DLL). The EXE loads my DLL and eventually ...
2
votes
2
answers
298
views
C Size of array is too big
Been given the task to convert code from the 80's to 64 bit.
Error given
error: size of array "spare2" is too large
This is line 76 of a header file
Line 76
uchar spare2[1018-XVIEWS*...
8
votes
1
answer
244
views
How to specify x64 emulation flag (EC_CODE) for shared memory sections for ARM64 Windows?
I'm working on an application that uses shared memory sections between processes on Windows (for an IPC mechanism between processes, where one process generates code that is executed by another ...
0
votes
0
answers
128
views
Can't write to user mode address space from kernel using MmCopyMemory
I've got this software based kernel mode driver (KMDF) and I've called MmcopyMemory like the following (see below). Essentially I would like to patch a user mode process in memory.
The two passed ...
1
vote
0
answers
169
views
How do I change exe's ico?
I did change in Form's properties, it change the icon in the taskbar but not the execuable file. I went to Project -> Options -> Application -> Icons did create a icon using art generator, as ...
5
votes
2
answers
219
views
Inconsistent bitwise shifting result in C code
I'm writing a C program and need to create a bitwise mask that could potentially fill a computer word (64 or 32 bits) with all 1s. I found a bug in my code but I can't make sense of it because when I ...
1
vote
1
answer
172
views
LoadLibraryA fails loading "user32.dll" in assembly x64
I have a code in assembly x86_64 that gets the kernel32.dll base through accessing the PEB and bla bla bla, gets the GetProcAddress address, uses that for getting the LoadLibraryA function and then i ...
0
votes
0
answers
131
views
Bug in `CopyAcceleratorTable` from `winuser.h` on 64-bit?
I am experiencing a weird bug in the function CopyAcceleratorTable when compiled for 64 bit (CopyAcceleratorTable).
I have two accelerator tables (from two dlls) which I want to concatenate into a ...
4
votes
0
answers
87
views
Constant value too large for OR but not for MOV on x64 [duplicate]
I am building assembly x64 functions, compiler microsoft ml64 which comes with VisualStudio. It comes that I can't do bitwise operation on 64 bit registers when I specify a value larger than 32 bit, ...
0
votes
0
answers
127
views
How to build a Windows installer/bootstrapper that can detect and install 64-bit (x64) prerequisites
I built a Windows installer/bootstrapper, using Visual Studio 2022, for an x64 app that requires certain x64 prerequisites be installed along side. However the bootstrapper is unable to detect whether ...
0
votes
0
answers
58
views
sqlite3 in fasm x64 on Windows
By using 64-bit DLL (x64) for SQLite version from here and documentation from here i'm trying to use Sqlite in Fasm for of course quite reasonable reasons.
When trying to sqlite3_open a new db file ...
0
votes
0
answers
300
views
How to run an ONNX model on raspberry pi 4 model b running a x64 bit OS?
I have trained a DL model on matlab and exported it as an ONNX file, now I need to run it on a raspberry pi 4 model B with Raspberry Pi OS X64 bit (aarch64) and python 3.11.2, I have followed many ...