Pelles C > General discussions
How to Cross Compile 32-Bit
(1/1)
daniel_bingamon:
I want an application to be cross compiled as 32-bit so that it will run on 32-bit machines.
What to I need to do in "Project Options" to set this?
frankie:
What exactly you need?
Cross-compile is a process to produce on a machine executables that will run on other machines having OS and/or processors different from the the compiling one.
PellesC actually supports only one processor family (IA-32 and IA-64), and only one OS: MS-WIN.
Because each 64 bits machine can run 32bits executables we cannot strictly speak of cross-compilation when the code is produced for a 32bits processor on a 64bits machine.
In the past, when PellesC come with ARM processors support, there was some kind of cross-compilation, but only for MS-WIN OS.
Robert:
--- Quote from: frankie on October 08, 2020, 10:01:01 AM ---What exactly you need?
Cross-compile is a process to produce on a machine executables that will run on other machines having OS and/or processors different from the the compiling one.
PellesC actually supports only one processor family (IA-32 and IA-64), and only one OS: MS-WIN.
Because each 64 bits machine can run 32bits executables we cannot strictly speak of cross-compilation when the code is produced for a 32bits processor on a 64bits machine.
In the past, when PellesC come with ARM processors support, there was some kind of cross-compilation, but only for MS-WIN OS.
--- End quote ---
Hi Frankie:
I'm not sure what Daniel needs but I was wondering how to change an existing 64 bit project to a 32 bit project in the IDE.
How can a project be compiled for 64 bit and then, with a click of "The Magic Button" in the IDE, compile for 32 bit?
Robert:
--- Quote from: Robert on October 08, 2020, 04:02:41 PM ---
--- Quote from: frankie on October 08, 2020, 10:01:01 AM ---What exactly you need?
Cross-compile is a process to produce on a machine executables that will run on other machines having OS and/or processors different from the the compiling one.
PellesC actually supports only one processor family (IA-32 and IA-64), and only one OS: MS-WIN.
Because each 64 bits machine can run 32bits executables we cannot strictly speak of cross-compilation when the code is produced for a 32bits processor on a 64bits machine.
In the past, when PellesC come with ARM processors support, there was some kind of cross-compilation, but only for MS-WIN OS.
--- End quote ---
Hi Frankie:
I'm not sure what Daniel needs but I was wondering how to change an existing 64 bit project to a 32 bit project in the IDE.
How can a project be compiled for 64 bit and then, with a click of "The Magic Button" in the IDE, compile for 32 bit?
--- End quote ---
Never mind. I found it. Right click on the Project name in the project window, click on Properties, click on Project tab and set the Type in the drop down box.
John Z:
If you are still using PellesC version 9 then you select x86 or x64 on the Project Options Compiler page. Using either version there can be quite a number of code changes that will need to be made, especially if this is a windows program you are changing. Just changing the setting from 64 to 32 or 32 to 64 won't automagically fix everything that needs to be changed.
John Z
Navigation
[0] Message Index
Go to full version