Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, Right now I am working on SUSE Linux.Here I already ported the source code to gcc from diab compiler by using cygwin environment on Microsoft Windows XP [Version ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    2

    How to Port 32bit source code in compatible to 64bit OS

    Hi All,
    Right now I am working on SUSE Linux.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.Actually my need is to simulate the code on model(Simulator). 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) that will work for 64bit? I am beginner in linux!please help me.
    thanks in advance

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by syamprasad
    Hi All,
    Right now I am working on SUSE Linux.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.Actually my need is to simulate the code on model(Simulator). 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) that will work for 64bit? I am beginner in linux!please help me.
    thanks in advance

    It all depends on how the 32 bit code is written. ie how dependent is the code on the fact it is running in 32 bits. But these questions are really indipendent of the OS.

    To wiether you can compile 64 bit code in a 32 bit OS. I'd say that depends on the compiler. I don't know if cc will do it, but I suspect if any compiler can cc can. Of course you would have a testing problem since you could not test the complied code in a 32 OS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...