32-bit

Assembly Linux system calls vs assembly OS x system calls

↘锁芯ラ 提交于 2020-08-19 04:56:12
问题 I have a problem with running assembly code on my mac. I am currently going through Jeff Duntemann's book Assembly Step by Step. The problem is that it focuses on writing assembly for 32 bit linux systems. I am using a 64 bit mac os x system. I can still run 32 bit assembly on my 64 bit system using nasm -f macho32, but apparently the code from Duntemann's book does not work because the system calls in Linux and mac os x are different. How would I convert this program: ; Executable name :

Can I POP a value from the stack, but put it nowhere in NASM Assembly?

白昼怎懂夜的黑 提交于 2020-07-29 06:51:12
问题 NASM Assembly, Ubuntu, 32-bit program. Normally, when popping a value from the stack, I'll do POP somewhere Into a register or a variable. But sometimes, I simply don't want to put it anywhere - I just want to get rid of the next element in the stack. Doing POP Just like that won't work. A workaround I had was to make a 4-byte variable I don't use at all and dump the POP into it. Is there a better way to achieve this? 回答1: Adjust the stack pointer by four bytes (or some other amount),

Why is Windows 32-bit called Windows x86 and not Windows x32?

陌路散爱 提交于 2020-06-24 07:01:19
问题 The Windows operating system can be either 32 bit or 64 bit. The 64 bit version is called Windows x64 but the 32 bit version is called Windows x86 . Why isn't it called Windows x32 ? What is the reason? 回答1: x86 is the name of the architecture that it's built to run on (the name comes from a series of old Intel processors, the names of which all ended in 86, The first of which was the 8086). Although x86 was originally a 16-bit architecture, the version in use today is the 32-bit extension.

What steps should I take to build and run .net core Web API application in 32-bit environment/runtime?

荒凉一梦 提交于 2020-06-01 05:12:28
问题 We developed an a .NET Core Web API application using the following technologies: -NET Core (3.1) -Visual Studio 2019 Unfortunately, we have to deploy said application to the following environment: -32-bit Environment -Windows Server 2008 R2 Enterprise (Service Pack 1) -IIS Version 7.5 -8 GB RAM Therefore, within my Visual Studio 2019, I brought up the application, and took the following steps: Force x86 in VS go to the Properties > Build and change Platform target from Any CPU to x86 Created

Java: How does the VM handle a 64bit `long` on a 32bit processor

房东的猫 提交于 2020-05-25 04:28:11
问题 How does the JVM handle a primitive "long", which is 64bits, on a 32bit processor? Can it utilise mulitple cores in parallel when on a Multi-Core 32bit machine? How much slower are 64bit operations on a 32bit machine? 回答1: It may use multiple cores to run different threads, but it does not use them in parallel for 64 bit calculations. A 64 bit long is basically stored as two 32 bit ints. In order to add them, two additions are needed, keeping track of the carry bit. Multiplication is kind of

Could not load SWT library on Windows 32-bit

故事扮演 提交于 2020-03-21 11:52:08
问题 I am almost done with one Java project that I have been developing on Linux. Now I need to build and test it on Windows. So I have installed Eclipse on Windows XP 32-bit, and imported my project. All dependencies of project are in jar files in lib folder, and on Linux everything works well, but on Windows XP I get following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-pi-gtk-4234 in java.library.path no swt-pi-gtk in java

Is there a way to force an “Any CPU” compiled app to run in 32bit mode on 64bit OS?

老子叫甜甜 提交于 2020-02-20 06:50:56
问题 If I have a "Any CPU" compiled .NET app, it will run in 64bit mode on a 64bit OS. But if I, for whatever reason, wants to force this app to run in 32bit mode. (As if it were compiled using "x86"). Recompiling is not an option, so is this possible to config at run time ? With the .manifest file perhaps? 回答1: I believe you can do this with CorFlags.exe Something like: CorFlags yourassembly.exe /32BIT+ Note that if the assembly is strong named you will also have to use the /force option which

Why does an assembly program only work when linked with crt1.o crti.o and crtn.o?

隐身守侯 提交于 2020-02-13 04:57:56
问题 I like to know how programs work so to make it as bare bones as possible I fool around with assembly. I just found out how to assemble code for x86_64 using wprintf function (found out wide chars are 32 bit). all I had to do was link to libc (-lc). I'm trying to assemble code for 32-bit doing about the same thing but I stumbled quite a bit. Eventually I used gcc to do the linking ( and changed the _start: to main:). So then I did the linking myself using ld and included crt1.o crti.o and crtn

Run wkhtmltopdf on CentOS 5.5 32bit

对着背影说爱祢 提交于 2020-02-06 15:45:08
问题 I'm trying to run wkhtmltopdf on CentOS 5.5 32bit version, I'm running that software on a VPS. Somehow I cannot execute the binary, this is what I get: -bash-3.2# ./wkhtmltopdf-i386 http://www.google.nl/ test.pdf Segmentation fault I haven't got a clue to what the problem might be, the file has the proper owner and it's permissions are 777. The only thing I can think of making this problem go away is installing the X11 packages on my VPS, I'm not sure if that will solve the problem though.

Process sizes and differences in behaviour on 32bit vs. 64bit Windows versions

时光怂恿深爱的人放手 提交于 2020-02-01 05:50:06
问题 I am investigating a strange problem with my application, where the behaviour is different on 2 versions of Windows: Windows XP (32-bit) Windows Server 2008 (64-bit) My findings are as follows. Windows XP (32-bit) When running my test scenario, the XML parser fails at a certain point during the parsing of a very large configuration file (see this question for more information). At the time of failure, the process size is approximately 2.3GB. Note that a registry key has been set to allow the