This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting to Windows


Gagneet Singh wrote:
> I wish to create a GCC port to the Windows OS. What we are trying to do
> is do the development on a Linux distribution and create the binaries
> for the Win32 platform.
> 
> The binaries are to be created for a cross-compiler for an embedded
> system.
> 
> Is the above possible?

I didn't fully understand this, so let me paraphrase your
requirement: you wish to build GCC on Linux so that the
built GCC runs on Windows and creates executables for your
embedded platform, right?

If yes, this is known as a "Canadian Cross":

    http://www.objsw.com/CrossGCC/FAQ-4.html#sec:CanadianCross

You might want to refer to the CrossGCC FAQ:

    http://www.objsw.com/CrossGCC/

It's not very difficult provided someone has
already ported binutils/GCC to your embedded target,
crossed or native. Otherwise, you'll have to carry
out *that* first.


> Please could someone guide me to the correct resources, as I could not
> find the information in the archives.

If you understand the configure terms:

    http://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html

properly, you'll have a better idea of how to
proceed with this task.

HTH,
Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]