public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Fw: How to Port 32bit source code in compatible to 64bit OS
@ 2007-01-02 13:01 Syam Prasad Nagabairu
  2007-01-02 14:12 ` Tim Prince
  0 siblings, 1 reply; 4+ messages in thread
From: Syam Prasad Nagabairu @ 2007-01-02 13:01 UTC (permalink / raw)
  To: gcc-help






Tim Prince,
             Thanks for ur response. I am using 32 bit OS ( Suse Linux
             /i386) but i need to compile for 64bit. coding is doen well
             with standards. the main need is porting the compiler itself.
             please help!


Thanks & Regards,
Syam Prasad N



-----Tim Prince <timothyprince@sbcglobal.net> wrote: -----


To: Syam Prasad Nagabairu <snagabairu@indusrad.com>
From: Tim Prince <timothyprince@sbcglobal.net>
Date: 01/02/2007 06:19PM
cc: gcc-help@gcc.gnu.org
Subject: Re: Fw: How to Port 32bit source code in compatible to 64bit OS

Syam Prasad Nagabairu wrote:
> Hi All,
> Here I already ported the source code to gcc from diab compiler by using
> cygwin environment on Microsoft Windows XP [Version 5.1.2600]. Now the
> requirement for me is to port this code on Linux in particular SUSE
> linux.actually my need is to simulate the code on model. we need to port
it
> in compatible to 64bit. is it possible to port a 32 bit source code on
> GNU/linux(i686 machine processor)? I am beginner in linux!please help me.
> thanks in advance
>

cygwin doesn't support 64-bit Windows development.  I certainly hope it
may do so at some time not too far distant.
If you write standard C code, rather than taking steps to make it a
non-portable "32-bit" code, you should be able to make it run both on
linux x86-64 (64-bit) and on i686-pc-cygwin (32-bit).  If you are
talking about porting the compiler itself, which I understand is a cross
 compiler, there may be no advantage in turning it into a 64-bit
application, since the x86-64 OS supports 32-bit mode perfectly well.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fw: How to Port 32bit source code in compatible to 64bit OS
  2007-01-02 13:01 Fw: How to Port 32bit source code in compatible to 64bit OS Syam Prasad Nagabairu
@ 2007-01-02 14:12 ` Tim Prince
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Prince @ 2007-01-02 14:12 UTC (permalink / raw)
  To: Syam Prasad Nagabairu; +Cc: gcc-help

Syam Prasad Nagabairu wrote:
> 
> 
> 
> 
> Tim Prince,
>              Thanks for ur response. I am using 32 bit OS ( Suse Linux
>              /i386) but i need to compile for 64bit. coding is doen well
>              with standards. the main need is porting the compiler itself.
>              please help!
> 
You have no need nor ability to build with gcc in 64-bit mode until you 
adopt a 64-bit OS.  Nor have you indicated any reason for doing so, when 
you are running a cross compiler which doesn't have a 64-bit target.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fw: How to Port 32bit source code in compatible to 64bit OS
  2007-01-02 11:53 Syam Prasad Nagabairu
@ 2007-01-02 12:49 ` Tim Prince
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Prince @ 2007-01-02 12:49 UTC (permalink / raw)
  To: Syam Prasad Nagabairu; +Cc: gcc-help

Syam Prasad Nagabairu wrote:
> Hi All,
> Here I already ported the source code to gcc from diab compiler by using
> cygwin environment on Microsoft Windows XP [Version 5.1.2600]. Now the
> requirement for me is to port this code on Linux in particular SUSE
> linux.actually my need is to simulate the code on model. we need to port it
> in compatible to 64bit. is it possible to port a 32 bit source code on
> GNU/linux(i686 machine processor)? I am beginner in linux!please help me.
> thanks in advance
> 

cygwin doesn't support 64-bit Windows development.  I certainly hope it 
may do so at some time not too far distant.
If you write standard C code, rather than taking steps to make it a 
non-portable "32-bit" code, you should be able to make it run both on 
linux x86-64 (64-bit) and on i686-pc-cygwin (32-bit).  If you are 
talking about porting the compiler itself, which I understand is a cross 
compiler, there may be no advantage in turning it into a 64-bit 
application, since the x86-64 OS supports 32-bit mode perfectly well.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fw: How to Port 32bit source code in compatible to 64bit OS
@ 2007-01-02 11:53 Syam Prasad Nagabairu
  2007-01-02 12:49 ` Tim Prince
  0 siblings, 1 reply; 4+ messages in thread
From: Syam Prasad Nagabairu @ 2007-01-02 11:53 UTC (permalink / raw)
  To: gcc-help


Hi All,
Here I already ported the source code to gcc from diab compiler by using
cygwin environment on Microsoft Windows XP [Version 5.1.2600]. Now the
requirement for me is to port this code on Linux in particular SUSE
linux.actually my need is to simulate the code on model. we need to port it
in compatible to 64bit. is it possible to port a 32 bit source code on
GNU/linux(i686 machine processor)? I am beginner in linux!please help me.
thanks in advance


Thanks & Regards,
 Syam Prasad N
INDUS R&D Ltd.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-02 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-02 13:01 Fw: How to Port 32bit source code in compatible to 64bit OS Syam Prasad Nagabairu
2007-01-02 14:12 ` Tim Prince
  -- strict thread matches above, loose matches on Subject: below --
2007-01-02 11:53 Syam Prasad Nagabairu
2007-01-02 12:49 ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).