<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>This was truncated, and there is a <EM>little</EM> of value <EM>perhaps...</EM>except probably just leave all the targets alone and focus on the much less disruptive decision for how to name all the many future targets. :) and the more productive work of bringing them up (I'm thinking, after NT386GNUish stuff, of looking into PPC_{NETBSD,OPENBSD} or NBSD,OBSD. I've got the hardware and the CDs at least.. and then if I'm feeling crazy, <FONT face="">X86_DJGPP aka X86_MSDOS or such, and then X86_SOLARIS maybe..I've got X86 and PPC32 you see, grasping at where to go...oh, and <FONT face="">AMD64_NT, AMD64_SOLARIS does that exist? Might have to get a new machine for that, but as long as its available in laptop form factor I'm game. (AMD64_F|N|OBSD too, I wonder if AMD64_DJGPP will materialize :) oh but this takes wasting money but AMD64_DARWIN; OLPC is en route but I don't think that merits work, it's just X86_LINUX, I mean LINUXLIBC6.. :) ). No idea how far I'll get here but they are thoughts at least. And fix the Pixmap bug...</FONT></FONT><BR>
<BR>
I basically below just agree with what Olaf already said -- processor-os-variant.<BR>
Variant is "random", but doing better is probably impossible, and variant is bound to be needed somewhere sometime.<BR>
And it can be empty so no harm.<BR>
<BR>
- Jay<BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: jayk123@hotmail.com<BR>To: wagner@elegosoft.com<BR>CC: m3devel@elegosoft.com<BR>Subject: RE: [M3devel] INSTALL_ROOT and PKG_USE in cm3.cfg<BR>Date: Fri, 25 Jan 2008 15:07:20 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
> I'm with you that they are neither systematic nor intuitive.<BR>> I think I could even be persuaded to support a general renaming,<BR>> if the scheme and concepts are well considered before.<BR><BR>Uh oh...<BR>[big ramble...]<BR> <BR>Darwin: I was surprised, but I understood.<BR> <BR>I know a lot of the history and I get it.<BR>I used the LINUXELF port briefly, or maybe the LINUX (a.out) one.<BR>I guess hypothetically you can still boot LINUX 1.2 on either modern hardware or VMs??????<BR>Anyone reporting 10 year uptimes??<BR> <BR>Unix ABI: I'm surprised the compat is so bad. Microsoft does an excellent job of ABI compat, but behavioral compat is another matter.<BR> <BR>> Yes. Actually the X in X Windows and MacOS X refer to completely different<BR>> things. MacOS X does not support X Windows out of the box, it uses<BR>> Aqua as GUI.<BR><BR>I understand. I believe Aqua is mostly just a marketing term even.<BR>Apple's got a bazillion different libraries to do the same thing.<BR>Want to draw on the screen -- QuickDraw (deprecated) or CoreGraphics, OpenGL..<BR>Want to have a text editor -- TextEdit, MSLTE, and something else, and third party like "WASTE".<BR>Want to get a mouse click -- there's two event managers.<BR>Want to open a file -- there's like four or more sets of APIs -- FSSpec, FSRef, stdio, unixio, maybe something in Cocoa.<BR>Even in the kernel they have multiple frameworks I believe.<BR>It appears to be a big random mishmash.<BR>They had two APIs for LoadLibrary/GetProcAddress, and then later add dlopen.<BR>A lot of this is historical too.<BR>They have history back to the early 1980s and they have migration story after migration story after migration story, <EM>gradually</EM> breaking all existing source code and binaries, but never eveything <EM>quite </EM>at once. At this point, nothing produced before around the year 2000 can run on an Intel Mac or a PowerPC Mac running 10.5. 10.4 on PowerPC could run stuff going way way back -- 68K even. People used to have access to video memory at fixed addresses, "low memory globals" all kinds of crazy stuff.<BR> <BR>(Really, I understand -- MacOS X is 10 or Unix. I don't know how/if they are ever going to get to 11. They were up to about version 10 via gradual incrementing through the years. System 7 was a breathrough kind of in the late 80's early 90's, System 7.1ish when the PPC came out in 1994, gradually up to around 7.5, then rapidly through 8 and 9 when Jobs returned before they release Mac OS X. I know a lot here..it's annoying... We had "fat Mac" circa 1984/1985 with 512meg and two floppy drives, a 68020 Mac II, etc.<BR>If you see the movie The Firm, when lawyer/actionhero Tom Cruise uses his computer, it plays the Mac floppy disk noise.)<BR>And by breathrough, I mean it actually sucked. They had no or nearly no protected memory user/kernel split until this century. Shared library sorts of things were loaded completely into memory at boot time generally. Microsoft beat them by 5+ years, Unix beat by far more. But now it's a fairly level playing field -- everyone has about the same architecture. Except all the low end (free) Unixes seemed to take forever to admit they needed threads, and I doubt any of them scale well. I think they resisted just to avoid being like NT, waiting and waiting and finally giving in, thus some of the ABI issues, no threads, "Linux threads", and finally NPTL -- native pthreads library -- kernel threads. And just when everyone arrived at the same place, along comes web apps distributed across a cluster, too many cores per chip for anyone to schedule...<BR> <BR>[editing has ripped things away from what they related oh well...]<BR> <BR>You can have all the smarts you want about your workload and manually schedule (fibers, vtalarm threads), but you'll never likely be able to control what CPU you are on and thus you will generally lose, unless there is only one CPU.<BR> <BR>I kind of assume we (the larger we m3devel, but indeed, perhaps every pair of developers :) ) would never be able to agree on names. I think the easiest to agree to plan is to leave it alone.<BR>But, um, I agree! If we, um, could agree on a scheme and set of names, I'd go for it.<BR>I am a little more optimistic than this...but I hesitate, briefly, to suggest...<BR> <BR>The GNU folks have a system, of triples or more recently quadruples.<BR>Something like processor-'hardware'-kernel, I forget and can't look now.<BR>'hardware' seems to be 'unknown' or 'pc' a bunch, so I don't know what it is.<BR>uname seems to be the ingredients of most of this.<BR>i686-pc-cygwin<BR>i686-pc-nt<BR>i686-pc-linux<BR>ppc-mac-darwin?<BR>ppc-mac-classic<BR>68k-mac-classic<BR> <BR>I figure to vet the design it helps to come up with many examples, even of platforms that don't matter.<BR>Maybe even to deal with the msdos mess, could be 16bit, 286, 386..<BR> <BR>I agree with you that a double seems to almost always suffice.<BR> <BR>If you look at the existing names (from memory), I think you can derive something like:<BR>{X86,AMD64,PPC,PPC64,ALPHA,MIPS,ARM,SH,SPARC,68K,VAX,IA64,HPPA}_{LINUX,SOLARIS,NT,OSF1,OS2,NEXT,MSDOS,VMS,Mac,OldMac,AIX,HPUX,FreeBSD,NetBSD,OpenBSD}<BR> <BR>and cover almost the whole problem.<BR> <BR>This doesn't address the elephants that seems to have finally left the room -- compiler, linker, window library, thread library, C library, modula-3 backend. Probably most platforms should be a 2-tuple but there should guidance on how to build <FONT face="">n-tuples.</FONT><BR>??<BR> <BR>x86-nt-msc-mslink-msgui-kthr-msvcr -- native<BR><FONT face=""> just call it x86-nt ?</FONT><BR><FONT face="">x86-nt-gcc</FONT>-gld-msgui-kthr-msvcr -- mingwin<BR><FONT face="">x86-</FONT>nt-gcc-gld-xwin-kthr-cyg -- nt386gnu<BR><FONT face="">x86-nt-gcc-gld-xwin-pthr-cyg</FONT> -- nt386gnu with pthreads<BR><FONT face="">x86-linux-gcc-gld-vga-nothr-newlib</FONT><BR>x86-linux-icc-glc-nowin-nptl-glibc -- icc Intel compiler<BR>x86-linux-gcc-gcc-qtopia-uthread-glibc<BR> <BR>These names are too long.<BR> <BR>The <FONT face="">n-tuples</FONT> open up many issues, such as variables that really almost never vary given what preceds them.<BR>Linux doesn't always use gcc, but almost.<BR>Or whether or not a configuration is link compatible with another.<BR>Varying the compiler tends not to break link compatibility, that isn't automatic, it isn't free i general, but the compiler authors usually make it so.<BR> <BR>You all can see if <FONT face="">n-<FONT face="">tuples</FONT> matter for the vast majority of platforms, but they, perhaps matter for <FONT face="">x86-nt</FONT>.</FONT><BR>But there is a big huge out of this that is in place, as I have said many times.. platform is nt386, everything else is something else, a "configuration" perhaps. Perhaps there should be a few more quake variables specced that cm3 can/should know about. Perhaps all of the target dependencies should be moved into the configuration file?????? I think there's so little, it makes little difference either way.<BR> <BR>Perhaps the notion of target drops away entire in cm3 and it's all just configuration and has less meaning?<BR>I mean..you know, what is the meaning? it's jmpbuf size, it gcc configuration, it's build_dir, those strike me as the majority of what "target" means. alignment, integer-size (always 32...except alpha), whether to use the integrated backend, and if so, a few other variables.<BR> <BR>I haven't allowed for versions -- FreeBSD4, FreeBSD5, FreeBSD6.<BR> <BR>I also think, I hate to say, you might want to account for "fat binaries".<BR>On a Mac, you can build up for four architectures into one binary.<BR>x86,AMD64,PPC,PPC64.<BR><EM>However</EM> that really strikes at my crazy cross idea and putting in .sh files that call out to the right binary.<BR>I heard NextStep/OpenStep ran on four architectures way back when -- 68k, x86, SPARC, HPPA, not to mention the variant the x86 variant that ran in NT (with gcc).<BR> <BR>Even Win32 lets you build hybrid 16bit/32bit or 16bit/64bit binaries, since there is an "MS-DOS" stub.<BR> <BR>This is why, of course, you end up with ad-hoc names. Because the extra variables are usually missing, and they vary differently depending on context, so just make up something.<BR> <BR>Perhaps you use the doubles I gave, and then you are allowed to append a dash and an arbitrary extra string.<BR>Oh, sorry, you already said that. You called it "variant". I guess that's it.<BR> <BR>{x86,AMD64,...}_{NT,SOLARIS,LINUX}{_optional variant}<BR> <BR>Here are some possible names from this system:<BR> <BR><FONT face="">X86_NT</FONT> (WIN? MSWIN?)<BR>X86_NT_MINGNU<BR>X86_NT_GNU<BR>X86_SOLARIS<BR>X86_SOLARIS_GNU<BR>SPARC_SOLARIS<BR>SPARC_SOLARIS_GNU<BR>PPC_MAC<BR>X86_MAC<BR>AMD64_MAC<BR>PPC64_MAC<BR>IA64_VMS<BR>VAX_VMS<BR>ALPHA_VMS<BR>MIPS_ULTRIX<BR>MIPS_IRIX<BR>IA64_NT<BR>AMD64_NT<BR>MIPS_NT<BR>PPC_NT<BR>PPC_XBOX ?<BR>X86_XBOX ?<BR>PPC_AIX (Is POWER interesting?)<BR>PPC601_AIX ?<BR>PPC603_AIX ?<BR>G3_MAC ?<BR>G4_MAC ?<BR>G5_MAC ?<BR>PPCG3_MAC ?<BR>PPCG4_MAC ? (doesn't run on G3)<BR>PPCG4_MAC ? (64 bit, lame names...)<BR>X86_MSDOS ?<BR><FONT face="">X86_DJGPP</FONT> ? <BR>X86_NT_MWERKS ?<BR>X86_NT_DIGITALMARS ?<BR>X86_NT_SYMANTEC ?<BR><FONT face="">X86_NT_BORLAND</FONT> ?<BR><FONT face=""><FONT face="">C_NT</FONT></FONT> ? outputs C code... hm. not right, C gets converted to something else.<BR>ALPHA_OSF1<BR> ALPHA_TRU64 ?<BR>ALPHA32_NT ?<BR>X86_NT_WATCOM ?<BR>X86_WINCE ?<BR>ARM_WINCE ?<BR>ARM_CE ?<BR>ARM_MSCE ?<BR>ARM_SYMBIAN ?<BR>ARM_PALM ?<BR>ARM_PALMOS ?<BR>X86_BEOS ?<BR>68000_OLDMAC ?<BR>68020_OLDMAC ?<BR> <BR>Obviously the vast vast vast vast majority of these don't matter, but as I said it helps to see how a bunch of platforms work out to vet the design. I've held back from...6502_APPLEII, 65816_APPLEIIGS.. 6502_C64 :)<BR>65816_SNES ? (Super Nintendo game console) <BR>6502_NES ? (Nintendo...)<BR>MIPS_PLAYSTATION ?<BR>?_SONYPS2 ?<BR>PPC_SONYPS3 (Linux runs on this, and maybe previous) <BR>SH_DREAMCAST ? (NetBSD runs on this... as does CE)<BR>X86_XBOX ? MSBOX ?<BR>PPC_XBOX360 (or is it PPC64? Oh, and for these things, you probably need to say MS or LINUX)<BR>PPC_MSXBOX360<BR>PPC_?XBOX<BR> <BR>and maybe some virtual machine targets:<BR>JVM_ANY ?<BR>JAVA_ANY ?<BR>MSDOTNET_ANY ?<BR>MSIL_ANY ?<BR>LLVM_NT ?<BR> <BR> <BR>Is x86 generically named and people can tweak it. Or call it 686 or I686 and if anyone really has an old processor, they can still tweak and rename and keep the name.<BR> <BR>Sorry if this is all very annoying. I'm ok with doing nothing here.<BR> <BR>Ultimately as I said, there isn't even that much code involved, as I recall.<BR>It seems to me if you move about 50 lines of cm3 out of cm3 into quake, the matter becomes even less "important", because the config file would be the only thing that cared and would only need to make sense to itself.<BR> <BR> - Jay<BR><BR><BR><BR>
<HR id=EC_stopSpelling>
<BR>> Date: Fri, 25 Jan 2008 13:36:49 +0100<BR>> From: wagner@elegosoft.com<BR>> To: jayk123@hotmail.com<BR>> CC: m3devel@elegosoft.com<BR>> Subject: RE: [M3devel] INSTALL_ROOT and PKG_USE in cm3.cfg<BR>> <BR>> I just wanted to point out why it's call PPC_DARWIN. Now that the<BR>> OpenDarwin project has closed down, it may indeed seem strange.<BR>> But many of the names can only be understood based on their history.<BR>> I'm with you that they are neither systematic nor intuitive.<BR>> I think I could even be persuaded to support a general renaming,<BR>> if the scheme and concepts are well considered before.<BR>> <BR>> Quoting Jay <jayk123@hotmail.com>:<BR>> <BR>> > The PPC_DARWIN port has an optional dependency on X Windows..is that <BR>> > available for plain Darwin or only with Mac OS X?<BR>> <BR>> Yes. Actually the X in X Windows and MacOS X refer to completely different<BR>> things. MacOS X does not support X Windows out of the box, it uses<BR>> Aqua as GUI.<BR>> <BR>> > I was surprised by "Darwin", therefore would be.. :)<BR>> That's why I tried to explain it ;-)<BR>> <BR>> > LINUX, LINUXELF, LINUXLIBC6? Please.<BR>> > Couldn't Linux have been recycled for LINUXLIBC6?Does anyone have <BR>> > Linux 1.2 around?<BR>> <BR>> It could be done now, but it couldn't when it was created.<BR>> <BR>> > Are the older FreeBSD ABIs so inferior that it is worth having newer <BR>> > ones? They didn't have pthreads back then and they do now?<BR>> <BR>> There are ABI changes with every major release of FreeBSD (and also<BR>> Linux, Solaris, and other operating systems if I am not much mistaken).<BR>> Of course, everyone strives for compatibility of the often used and<BR>> most important interfaces, but there is a grey zone where data<BR>> structures common to the kernel and userland are touched, and they<BR>> need to be updated (in order to not hinder improvement) more often<BR>> than you'd think. If such an update annoys or disturbs users often<BR>> enough, new interface abstractions tend to appear that should<BR>> avoid the problem for future releases (for example, changes of the<BR>> jmp_buf structure break threading code --> new interfaces for thread<BR>> context access are defined). The M3 runtime is somewhat special and<BR>> differs from the C runtime in that it makes use of quite a number of not<BR>> always well-defined system interfaces. We also try to eliminate these<BR>> dependencies (VM calls, jmp_buf structure, whole threading, ...)<BR>> <BR>> Actually I think I was the first one to port any pthread package to<BR>> FreeBSD (when working for a company building POS solutions, but we could<BR>> never release the code) back in the 1.5 and 2.x days. I used a pthreads<BR>> implementation by Frank Mueller.<BR>> Official pthread support came much later.<BR>> <BR>> Olaf<BR>> -- <BR>> Olaf Wagner -- elego Software Solutions GmbH<BR>> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany<BR>> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95<BR>> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin<BR>> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194<BR>> <BR><BR><BR>
<HR>
Helping your favorite cause is as easy as instant messaging. You IM, we give. <A href="http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join" target=_blank>Learn more.</A> </BLOCKQUOTE><br /><hr />Climb to the top of the charts! Play the word scramble challenge with star power. <a href='http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan' target='_new'>Play now!</a></body>
</html>