Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: Id love to surf web with 4megs ram forth pc using forth and forth chips Date: Fri, 18 Oct 2013 04:02:34 -0400 Organization: Aioe.org NNTP Server Lines: 41 Message-ID: References: <03053326-251f-4e27-8ac4-0ac49cfd017f@googlegroups.com> <525fd203$0$1691$e4fe514c@dreader35.news.xs4all.nl> <5260414c$0$604$e4fe514c@dreader34.news.xs4all.nl> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:26629 On Thu, 17 Oct 2013 15:58:04 -0400, Albert van der Horst wrote: > My point is the amount of libraries needed to start an OS is > mind-boggling. You just need a full featured C compiler to code an OS in C. That's it. 30% or so of the C language is independent of the host and another 40% is custom to each host, but works the same across different platforms. 30% is not portable. Of course, a full featured C compiler provides inline assembly which is needed on the x86 platform to provide special x86 processor instructions. However, no C libraries are needed to bootstrap an OS in C. A C library isn't that dependent on an OS either. To build a C library, you only need about 18 to 20 functions provided by the OS, plus a large amount of C code to implement the library. Of course, an efficient C library can use over 200 functions provided by the OS. I'm not sure what the exact equivalent would be for Forth, but most likely it's just the base Forth language plus some assembly, perhaps meta-compilation (cross-compiling...) too. If you're interested in bootstrapping an OS, come on over to news://alt.os.development or http://wiki.osdev.org. But, be forewarned that most guys either code an OS in x86 assembly or C. Very few use C++. Very few develop for non-x86. I've never heard of Forth being used, probably because Forth either is an OS already or isn't, depending on the implementation. Rod Pemberton -- 84Nk5y once again, proving artists, citizens, authorities from around the world CAN'T recognize ART when they SEE it. Rats, chimps, gays, un-angelic angels, shell-shocked soldiers, distopian childhoods ... Whats next? We have Youtube where it's REAL, in COLOR, without need of monochrome stenciled spray paint ... BANKSY, the world is unchanged.