From: Peter Barada <peter@the-baradas.com>
To: santhu.kumar@gmail.com
Cc: gcc@gcc.gnu.org
Subject: Re: reg. cross compiling
Date: Sun, 21 Nov 2004 21:18:00 -0000 [thread overview]
Message-ID: <20041121065405.E73F09842D@baradas.org> (raw)
In-Reply-To: <761cb958041120224926e8e3da@mail.gmail.com> (message from Santhu on Sun, 21 Nov 2004 12:19:48 +0530)
>my task is to convert the C-code into VM-Code (VM is a kind of
>assembly lang developed by my collegues). for this, i'm taking the GNU
>assembly code generated by GCC by compiling with '-S' option.
>but the problem is that GCC is generating the GAS code based on the
>architecture of the machine it is running on.
>is there any way i can set the architecture info to make GCC to
>generate the assembly code for a target architecture? ( i.e, running
>on SPARC machine can i generate the assembly code for Intel x86 )
>thank you in advance.
Sure.
You want to build a cross-compiler, one to run on a sparc, but
produce code for the x86. Look at crosstool
(www.kegel.com/crosstool/) for a great tool to build GNU cross-toolchains,
and also look at the crossgcc mailing list archives
http://sources.redhat.com/ml/crossgcc/
--
Peter Barada
peter@the-baradas.com
prev parent reply other threads:[~2004-11-21 6:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-21 18:02 Santhu
2004-11-21 21:18 ` Peter Barada [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041121065405.E73F09842D@baradas.org \
--to=peter@the-baradas.com \
--cc=gcc@gcc.gnu.org \
--cc=santhu.kumar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).