Article View: news.software.readers
Article #136663Re: [Xnews] Open Source Xnews?
From: August Derleth
Date: Sun, 02 Nov 2003 04:54
Date: Sun, 02 Nov 2003 04:54
48 lines
3369 bytes
3369 bytes
Darrien <Darrien_Lambert@NA._.COM@hotmail.com> wrote in message news:<Xns942639EC413FEDarrienL@140.99.99.130>... > On Sat, 01 Nov 2003 13:08:44 GMT, "Richard Hoskins" Enlightened the world > by saying: > > [FollowUp set] > > > Darrien <Darrien_Lambert@NA._.COM@hotmail.com> writes: > > > >> > >> C is not a platform specific language. > >> > > > > That's the theory anyway. > > > > Can you explain this statement? > > Why do you believe that C is platform specific? C is as platform-specific as the writer makes it. He can choose to use only standard libraries and only the defined-standard syntax and semantics as defined in the ISO standard, making it portable to any machine with a Standard C compiler. He can opt to use POSIX as well, a relatively high-level API that essentially defines a Unix-like environment for a program to operate in, but lose portability to older and special-purpose OSes that don't support POSIX. He can use an API more system-specific than POSIX, like making his program dependent upon a specific system's implementation of threads. That might gain him some ease of use and perhaps a bit of speed, but it would require some rewrites to make it usable on an OS that doesn't support what he's relied upon. And, of course, he could use nonstandard constructs like void main() and old K&R-style function definitions, simply because a specific compiler happens to support them the way he likes. Writing code like that could tie the sources to a specific version of a specific compiler, and in theory make it no more portable than if he'd written the program in assembly. So the upshot is this: If a programmer decides to make his program nonportable and tie it as tightly as he can to a specific OS/hardware/compiler combination, there are ways for him to do it while stil writing code in what looks like C. If he decides to do something like write inline assembly, the unportability factor ramps up towards infinity.
Technical Details
Message-ID:
<b6c8998.0311012054.2e2cb8e5@posting.google.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news.maxwell.syr.edu!postnews1.google.com!not-for-mailReferences:
<aaKnb.211946$pl3.76968@pd7tw3no> <Xns9424B02ACBB87j44xm@216.196.97.129> <Xns94256BAA259CFpetitalexicathscouk@news-60.giganews.com> <Xns94266D263760EMQ4201HB@Kia.Ora.Hoa.Aku> <slrnbq66k0.2jl.dcmoose@moosemeat.ca.INVALID> <m3llr0n44s.fsf@apk.net> <Xns9426288C6688BDarrienL@140.99.99.130> <m3he1ome1v.fsf@apk.net> <Xns942639EC413FEDarrienL@140.99.99.130>Show Full Headers
Complete Article Headers
Message-ID: <b6c8998.0311012054.2e2cb8e5@posting.google.com> Subject: Re: [Xnews] Open Source Xnews? Date: Sun, 02 Nov 2003 04:54:09 +0000 From: libertarian232003@yahoo.com (August Derleth) References: <aaKnb.211946$pl3.76968@pd7tw3no> <Xns9424B02ACBB87j44xm@216.196.97.129> <Xns94256BAA259CFpetitalexicathscouk@news-60.giganews.com> <Xns94266D263760EMQ4201HB@Kia.Ora.Hoa.Aku> <slrnbq66k0.2jl.dcmoose@moosemeat.ca.INVALID> <m3llr0n44s.fsf@apk.net> <Xns9426288C6688BDarrienL@140.99.99.130> <m3he1ome1v.fsf@apk.net> <Xns942639EC413FEDarrienL@140.99.99.130> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Newsgroups: news.software.readers Organization: http://groups.google.com Lines: 48 NNTP-Posting-Host: 198.60.96.141 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1067748849 16497 127.0.0.1 (2 Nov 2003 04:54:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 2 Nov 2003 04:54:09 +0000 (UTC)