From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] plan9ports & macos 10.4 don't like each othere.
Date: Thu, 10 Nov 2005 00:53:54 -0500 [thread overview]
Message-ID: <ee9e417a0511092153l26373247ya5a235200e9ca83e@mail.gmail.com> (raw)
In-Reply-To: <98C8D026-907D-4DAB-8A12-05C964625FA4@corpus-callosum.com>
> Russ posted a recent update to libthread and there are updates to bin/
> 9l and src/cmd/auxstats/mkfile that I hope make it in sometime in the
> near future (only needed for auxstats right now, and I respect Russ'
> busy schedule).
Please don't assume that I've properly queued things
that I don't respond about. I completely missed the
mkfile change in your mail. I think the other changes
(in 9l) have been applied for a few weeks. If there are
any changes you think I'm still missing, please resend them.
> This actually leads to the question: since Apple's announced the x86
> support for Mac OS X, would it be beneficial to modify the mkfile's
> for the Darwin port to support the MachO multi-binary options by
> making 9c & 9l deal with the Darwin sources in a similar way as the
> Plan 9 compiler does? Though MachO supports 'fat' binaries after the
> linker has handled them, I think it would be better to handle the
> object files in the same manner as the Plan 9 compiler and save them
> as .[v851ok0q2t6] only to let the linker squish them together if
> needed (still allowing for fully separate libraries and executables
> for each Darwin platform if needed).
>
> Would anyone mind if I made the required changes to 9c, 9l and any
> supporting mkfiles?
I would mind. It's a pain that .o is the same suffix everywhere,
but it's a fact of life on Unix. If the code got ported to Windows
using MSVC (looking less likely now that I know about mingw),
I would fully expect to use .obj.
Plan 9 from User Space walks a fine line between avoiding
the ugliness of Unix and trying to coexist peacefully with it.
I think it would be too radical a change if you ran 9c and got
a .8 file out, especially given that the .8 would actually *be* a .o.
It would be a different story if it were a Plan 9 .8 file. 9l generates
a.out for the same reason. It's difficult to articulate exactly
where the line is in general, except that I built an earlier system
that tried to be much more like Plan 9 (it had all the system calls
and a user-level kernel that all the "Plan 9" applications talked to).
It succeeded at being more like Plan 9 but it failed at being
useful. It felt like I had built another world on top of the host
system (Windows in this case). The current tools feel more
integrated into the host system, and I like that a lot.
Also, using .8 and .q instead of .o still wouldn't be completely specific:
as I move between FreeBSD and Linux I frequently find myself
staring at .o files and having no idea which system they're
compiled for. mk clean; mk.
Russ
next prev parent reply other threads:[~2005-11-10 5:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 20:19 Ronald G Minnich
2005-11-09 20:28 ` Ben Huntsman
2005-11-09 20:30 ` Russ Cox
2005-11-09 20:50 ` Matt Sottile
2005-11-09 20:52 ` Ronald G Minnich
2005-11-10 2:18 ` Jeff Sickel
2005-11-10 3:46 ` Ronald G Minnich
2005-11-10 5:25 ` Jeff Sickel
2005-11-10 5:53 ` Russ Cox [this message]
2005-11-10 7:30 ` Jeff Sickel
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=ee9e417a0511092153l26373247ya5a235200e9ca83e@mail.gmail.com \
--to=rsc@swtch.com \
--cc=9fans@cse.psu.edu \
/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).