From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public From: jordan@Starbase.NeoSoft.COM (Jordan Henderson) Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/09/05 Message-ID: <6ssnp9$6pv$1@Starbase.NeoSoft.COM>#1/1 X-Deja-AN: 388292959 References: <0095000017115526000002L062*@MHS> <35e833be.0@news.wizvax.net> <6sac4v$4ti$1@Starbase.NeoSoft.COM> <6ss8cc$qrl@web.nmti.com> Organization: NeoSoft, Inc. +1 713 968 5800 Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c Hi Peter! In article <6ss8cc$qrl@web.nmti.com>, Peter da Silva wrote: >Hi Jordan! > >In article <6sac4v$4ti$1@Starbase.NeoSoft.COM>, >Jordan Henderson wrote: >>I have to admit, I don't have the C standard at hand. However, I would >>be surprised if the standard >required< that command line arguments be setup >>by something "linked in". > >In a "hosted" implemantation that's true, but not in an "embedded" one. If >you're messing around at this level you're not worried about the normal >C runtime, are you? I mean, that's the point. > I'm perplexed. What is it exactly from the above are you saying is true for a "hosted" implementation, but not in an "embedded" one? I infer you are inferring that I was saying that a C compiler had to write programs that handled command line arguments. I did not. I was only making statements about how a C implementation _may_ handle command line arguments. In an environment where command line arguments are typically not provided (device drivers, etc.) the compiler could write code into the result program that would check for the environmental restrictions at run time and provide command line arguments or not, as appropriate. Actually, it's more typical that you would have to provide special instructions to the compiler/linker/etc. when writing special device driver types of programs, but all this detail is outside of considerations of what a C compiler can and cannot do in ANSI conformant implementations. >(how else would a device driver satisfy ANSI otherwise) This is a non-sequitor. Who was claiming that a C program had to have command line argument processing to be ANSI conformant? I was claiming that if an ANSI conformant C program had command line arguments, they would all be nul-terminated strings. > >-- >In hoc signo hack, Peter da Silva > `-_-' "If Microsoft don't think you need it, it's not there and there's no > 'U` way to include it yourself." -- Geoff Lane, a.s.r.