6,123 questions
0
votes
0
answers
220
views
Converting 64bit asm to 32bit?
I'm working on a project which involves loading a dll into an application that has 64bit and 32bit versions. I do not have access to the source code for this app, I am injecting instruction into a ...
3
votes
1
answer
425
views
int_fast8_t size vs int_fast16_t size on x86-64 platform
I already learned that on the x86-64 platform using any 64-bit register would need a REX prefix, and any address less than 64 bits would require an address-size prefix.
On x86-64 bit:
E3 rel8 is jrcxz
...
0
votes
0
answers
59
views
Calling Twapi in 64 bit failure in 'freewraped' version
I have a strange problem in a current TCL program. It requires two libs, the muPDF and twapi. It has to be in 64 bit version due to muPDF being only available in 64bit. For the twapi it should be no ...
0
votes
0
answers
101
views
send data using Indy component as WideString with Delphi
I'm using Delphi 6 for developing a client/server application using Indy and COM components, and the response was sent in XML format as a WideString variable. I'm facing an EOutOfMemory exception when ...
0
votes
1
answer
280
views
Need suggestion to use alternate for Faststring.pas in delphi
I have converted code from Delphi 6 32-bit to Delphi 11 64-bit, and in the source code we have used Fast String to use the FastReplace() and FastPos() functions.
I have tried to compile the ...
1
vote
0
answers
59
views
x64 NASM Assembly 64bit division doesn't produce remainder
mov rax, rdi
mov rbx, [_j]
idiv rbx
There was a dividend in RDI register and a divisor in the BSS section variable j. To get the calculation result of RDI % j, I wrote the code like the upper ...
0
votes
1
answer
39
views
Why is minus going after the numbers when I convert the number in the string?
I have written the code on Netwide Assembler that converts an integer to a string but console's output is wrong. And if it will help I write code on Windows 10 under x64 architecture.
I tried to write ...
0
votes
1
answer
57
views
using 'new' operator in MS windows 64bit dll causes problems loading dll
MS Windows 10, MinGW64bit, Codeblocks 20:03
I have code that was previously in 32bit and working perfectly. Rewriting and changing to 64 bit and running into problems.
I used codeblocks to generate a ...
1
vote
1
answer
107
views
How to get the runtime of a NASM assembly program?
How get the Runtime of a NASM Program?
This is the program that I want to get the runtime of it. It is a simple program to calculate the Fibonacci sequence using NASM assembly so, I need to get the ...
-1
votes
1
answer
207
views
Why do we need 64-bit CPUs? [closed]
In software development, 32-bit variables can already meet 99.99% of the requirements. So why do we need 64-bit CPUs?
If it's about addressing issues, couldn't we solve it perfectly like the 8086 did, ...
2
votes
3
answers
486
views
64-bit objects no longer initialized to nil?
I just noticed this:
function DataTransfer(...parameters...) : boolean;
var
LTestQuery, LUpdateQuery: TFDQuery;
begin
Right at the start of the procedure:
In 32-bit (Delphi Alexandria 11.1) local ...
0
votes
1
answer
374
views
Delphi 64 bits Insert rtf stream into richedit
I try to insert a rtf inside a richedit (specifically a rtf saved in database, and then inserted in the current richedit control at the selection point).
The code below works in 32 bits. But was not ...
0
votes
2
answers
15k
views
Firebird fbclient.dll and gds32.dll bitness for 64-bit program?
When converting my 32-bits Delphi Alexandria 11.3 program from 32-bit to 64-bit, I noticed that the directory with the executable also contains Firebird's fbclient.dll which is identical to the file ...
1
vote
2
answers
64
views
Running MSBuild from Cruise Control .NET with 64 tools environment enabled
I was running into the a linker error: Error C1002 compiler is out of heap space in pass 2 (while building using Visual Studio 2015) recently and my solution was to use msbuild from the command line ...
0
votes
1
answer
282
views
Tag property in 64 bit misused for storing object references
I'm converting 32-bit code to 64-bit and there's a lot of use of the .Tag property.
Many of those are just for storing integer values, and then assignments like MyInteger := Component.Tag, although ...
0
votes
0
answers
76
views
What does "Auto" mean for Visual Studio Unit Test Runner Bitness?
This is about the following Visual Studio 2022 menu option:
Test/Processor Architecture for AnyCPU Projects/Auto.
What exactly does "Auto" mean?
Background: We recently had the case where ...
0
votes
1
answer
1k
views
How do divide unsigned 128/64 Bit on x86-64?
I need to divide an unsigned 128-Bit number on a 64-Bit Processor at the Register rdx:rax with a 64-Bit divisor in rdi. The lower Bits are in raxand the higher ones in rdx.
However the DIV-Instruction ...
1
vote
1
answer
81
views
`unpack('Q', ...) % (1 << 62)` resulting in negative value with `use integer` on x86_64
Testing a random number function I wrote in the debugger I'm getting unexpected results.
Specifically for use integer the result of unpack('Q', random_bytes(...)) % (1 << 62) seems to be ...
0
votes
1
answer
2k
views
64bit Connection string for Access DB
Our application written in c# has both 64bit and 32bit versions that can be installed.
Trying to import data from a 3rd party access db
The 32bit version will work with the connection string
Provider=...
0
votes
0
answers
45
views
64-bit ArrayList for Java [duplicate]
Is there a class or a library which function just like ArrayList class in Java, but it use 64-bit index (long) and size?
Don't say that it is useless or not needed. 10 years ago, people don't need 4GB ...
0
votes
0
answers
415
views
Need help walking data structures (_KPCR, _KPRCB, _KTHREAD, etc) based on PsGetCurrentProcess disassembled code
I've been studying the three-line assembly code taken from Windbg on a Windows 8.1 (64 bit) computer. I've been told that the below assembly code returns a pointer to a EPROCESS object. I however ...
2
votes
1
answer
805
views
What is difference between MD5_NUMBER_LOWER64 and MD5_NUMBER_UPPER64
From the description, I found that it Calculates the 128-bit MD5 message digest, interprets it as a signed 128-bit big endian number, and returns the upper/lower 64 bits of the number as an unsigned ...
0
votes
2
answers
358
views
VSTO add-in won't load in 64-bit Outlook
I have a VSTO add-in which works fine with 32-bit Outlook when running on either 32 or 64-bit Windows but when it's installed onto a machine with 64-Outlook it won't load the add-in.
The error message ...
1
vote
2
answers
1k
views
Make a VCL package 64-bit compatible
I noticed that in a 64 bit application, the VCL Design components I have written are grayed-out in the component pallette:
Other third party VCL components work in both 32 and 64 bit.
My BPL can ...
0
votes
1
answer
371
views
Cannot import opencv after succesfull install on Raspberry Pi
I try to install opencv on my Raspberry Pi with 4GB RAM (Raspberry OS version Linux 5.15.84-v8+ aarch64). Instructions I found on q-engineering. After a 2hr lasting build process the make announced ...