From: Kevin Buettner <kev@primenet.com>
To: "Rolf Liu" <rolfl@sc23.sc.mcel.mot.com>,
<linuxppc-dev@lists.linuxppc.org>
Subject: Re: who has an opinion on porting source file to Windows ?
Date: Thu, 11 May 2000 00:16:44 -0700 [thread overview]
Message-ID: <1000511071644.ZM3969@saguaro.lan> (raw)
In-Reply-To: "Rolf Liu" <rolfl@sc23.sc.mcel.mot.com> "who has an opinion on porting source file to Windows ?" (May 11, 1:21pm)
On May 11, 1:21pm, Rolf Liu wrote:
> I am trying to compiling the kernel 2.2.13 under the Windows NT platform.
> The compiler is from Metrowerks CodeWarrior, command-line tool.
> there is a problem,the path separator under linux is /, but under Windows NT
> is \.
> Furthermore there is a need to translate the '<' and '>' into '"' and '"' .
> And there are so many source files in Kernel 2.2.13,also so many #include
> directives.
> Is there any good method on translating the / into \ in a batch mode?
You have a tough road ahead of you. The path separator problem and
the other minor syntax problems that you've identified are only the
tip of the iceberg. Even if you solve these problems, you still have
to contend with a significantly different inline assembler and uses of
features (in the kernel) that are exclusive to GNU C. It can probably
be done, but is it really worth it? Suppose you are successful and
you wish to apply the latest kernel patches. You will have an ongoing
battle ahead of you to port all the new code.
The good people of Metrowerks (where I once worked) are aware of
these problems and have (at one time anyway) considered making the
necessary changes to the compiler in order to build the Linux
kernel. I have no idea whether they are still considering this
or not, but you may wish to ask.
I do not understand why you wish to do your builds on Windows NT, but
if that is really a requirement, you'll find life much easier if you
use an NT hosted gcc which cross compiles to the PowerPC. As Gabriel
Ricard mentioned, the Cygwin environment will help make life easier as
well. (I think that all of those pesky path problems will vanish.)
You may find the following URLs to be useful:
http://sourceware.cygnus.com/cygwin/
http://gcc.gnu.org/onlinedocs/gcc_3.html#IDX347
The latter link describes the process of building and installing a
cross compiler. You will want to make sure you have Cygwin installed
prior to attempting this however.
Kevin
--
Kevin Buettner
kev@primenet.com, kevinb@redhat.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next parent reply other threads:[~2000-05-11 7:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <00d901bfbb08$ce61c670$bf0102c8@dell191.sc.mcel.mot.com>
2000-05-11 7:16 ` Kevin Buettner [this message]
2000-05-11 18:49 ` who has an opinion on porting source file to Windows ? Deti Fliegl
2000-05-11 18:03 jingai
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=1000511071644.ZM3969@saguaro.lan \
--to=kev@primenet.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=rolfl@sc23.sc.mcel.mot.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 NNTP newsgroup(s).