x86-64

How to late bind 32bit/64 bit libs at runtime

I've got a problem similar to,but subtly different from, that described here (Loading assemblies and their dependencies). I have a C++ DLL for 3D rendering that is what we sell to customers. For .NET users we will have a CLR wrapper around it. The C++ DLL can be built in both 32 and 64bit versions, but I think this means we need to have...

Comprehensive List of x86_64 Assembly Instructions

I'm doing a lab for a comp sci class that involves "defusing a binary bomb," basically reverse engineering a program to gain 6 "passwords." I was just looking for a list of all of the instructions in one, easy to read place. Thanks Alex ...

Targeting both 32bit and 64bit with Visual Studio in same solution/project

Greetings. I have a little dilemma on how to set up my visual studio builds for multi-targeting. Background: c# .NET v2.0 with p/invoking into 3rd party 32 bit DLL's, SQL compact v3.5 SP1, with a Setup project. Right now, the platform target is set to x86 so it can be run on Windows x64. The 3rd party company has just released 64 bit...

Can a WinForms app be configured to run as "x86" without recompiling?

Can a WinForms app compiled for "Any CPU" be configured to run as "x86" on a 64-bit server without recompiling the app? Specifically, I'm looking for an app.config setting or Control Panel applet to accomplish this end. All the customer's clients are x86, but the server is x64, and we like to install the WinForms app on the server for ad...

Can I load a 32 bit DLL into a 64 bit process on Windows?

I recently upgraded a c# windows service to run as a 64 bit .net process. Normally, this would be trivial, but the system makes use of a 32-bit DLL written in C++. It is not an option to convert this DLL to 64 bit, so I wrapped the DLL in a separate 32 bit .net process and exposed a .net interface via remoting. This is quite a reliable ...

Best resources for learning x86_64 assembly?

Hello everyone. I'm currently teaching myself x86_64 assembly, mostly via AMD's ABI. There's tons of great resources out there for learning x86, but I'm finding that the 64 bit arena is pretty sparse. Anyone have some good resources hidden away? ...

How to determine if a .NET assembly was built for x86 or x64?

I've got an arbitrary list of .NET assemblies. I need to programmatically check if each DLL was built for x86. (As opposed to x64 or Any CPU.) Is this possible? ...

Python ctypes and function calls

My friend produced a small proof-of-concept assembler that worked on x86. I decided to port it for x86_64 as well, but I immediately hit a problem. I wrote a small piece of program in C, then compiled and objdumped the code. After that I inserted it to my python script, therefore the x86_64 code is correct: from ctypes import cast, CFU...

How can I use gcc to compile x86 assembly code on an x64 computer

For a school assignment I have to write x86 assembly code, except I can't use gcc to compile it since my computer is an x64 machine, and gcc is only excpecting x86 code. Is there a command that'll make gcc accept it x86 assembly code? Thanks P.S. I know my code is valid since it compiles just fine on x86 machines. ...

System.BadImageFormatException "invalid format" when trying to install service with installutil.exe

I am trying to install a Windows service using InstallUtil.exe and am getting the error message System.BadImageFormatException - invalid format What gives? ...

Use 32bit "Program Files" directory in msbuild

In 64 bit versions of windows, 32 bit software is installed in "c:\program files (x86)". This means you cannot use $(programfiles) to get the path to (32 bit) software. So I need a $(programfiles32) to overcome this in my msbuild project. I don't want to change the project depending on the os it is running on. I have a solution which I ...

Are There any Open Source Real Time Operating Systems?

Are there any open source real time operating systems out there? I've heard of real-time Linux, but most implementations seem to really be a proprietary RTOS (that you have to pay for) that run Linux as a process -- much the same way Ardence's RTX real-time system works for Windows. EDIT: I should clarify that I'm looking for RTOS to w...

Converting 32-bit Application Into 64-bit Application in C

I am presently working on converting a 32bits application into a 64bits application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linux). So, before starting coding, I wanted to know what do I need to consider while converting the application. ...

Running C# app 32 bit on 64 bit machine

How do I force my app to run 32 bit on the 64 bit machine? The code is written in C#. ...

How to find if native dll is compiled as x64 or x86?

Hi I want to if native assembly is complied as x64 or x86 from a managed code application (c#). I think it must somewhere in the PE header since the OS loader needs to know this info but I couldn't find it. I prefer of course to do it in managed code but if it necessary I can use native C++. Thanks in advance for any help. ...

Building crti.o for i386

I am trying to build a cross-compiler with x86_64 being the host and i386 being the target. I'm getting the (all to common) crti.o: No such file error. Instead of grabbing an already built crti.o and crtn.o from a distro... how might I go about building these files explicitly from glibc (or possibly gcc) sources? FYI, I am well aware of...

Detecting x86/x64 and installing correct .msi

I am finalizing an application that will soon be submitted for Windows Logo Program validation. One of the requirements is x64 compatibility. Specifically, Crystal Reports 2008 must work under x64. My problem is that Crystal Reports basic 2008 (the one packaged with Visual Studio 2008) has no merge modules and must be installed using ...

Precautions when developing ASP.NET application on x86 computers but target computer is 64 bit (Windows Server 2008)

We have to deploy our application on a Windows 2008 64 bit server. As the application is already running for over one year on a Windows 2003 server installation, we know everything is working fine. We are still developing on Windows XP. But installing it on a Windows 2008 64 bit system make me feel a little bit uneasy. So are there any...

How to reserve bottom 4GB VM in an x64 C++ app

Working on porting a 32bit Windows C++ app to 64 bit. Unfortunately, the code uses frequent casting in both directions between DWORD and pointer values. One of the ideas is to reserve the first 4GB of virtual process space as early as possible during process startup so that all subsequent calls to reserve memory will be from virtual add...

How does an OS affect how assembly code runs?

I'm hoping to learn assembly language for x86. I'm on a Mac, and I'm assuming most x86 tutorials/books use code that's meant for Windows. How does the OS that code is run on affect what the code does, or determine whether the code even works? Could I follow a Windows-based tutorial, and modify a few commands to make it work for Mac wi...