From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fe7b178ffa3708a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-26 11:04:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: "Jeff C," Newsgroups: comp.lang.ada References: <657ea3e3.0309260810.4b6682d2@posting.google.com> Subject: Re: Omission in the Ada Standard X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 66.31.4.164 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc51.ops.asp.att.net 1064597705 66.31.4.164 (Fri, 26 Sep 2003 17:35:05 GMT) NNTP-Posting-Date: Fri, 26 Sep 2003 17:35:05 GMT Organization: Comcast Online Date: Fri, 26 Sep 2003 18:04:23 GMT Xref: archiver1.google.com comp.lang.ada:43010 Date: 2003-09-26T18:04:23+00:00 List-Id: "Robert C. Leif" wrote in message news:657ea3e3.0309260810.4b6682d2@posting.google.com... > I believe that other chips besides Intel's have ports. My suggestion > would also work for systems with multiple memory banks. If Ada is to > be used for real-time embedded systems, Ada compilers MUST work out of > the box with major processors. Otherwise, normal engineers will go to > some other language. > I don't think we disagree as much as you might think...I think that any compiler for x86 designed for an OS that supports it should come with predefined libraries to do port IO. I even wish it were relatively standard.. Note again that no language I know of has the predefined ability to talk to ports as part of the language definition.. It is pretty easy to get GNAT to do it. I'll have to dust off my old wind 95 laptop since once I did some port IO stuff on there but I never took it off before I put it away. > Incidentally in order to program special boards, one needs to read > from and write to ports under Windows. I might note after posting my > message and several follow-ups, I have yet to receive any suggestions > as to how to read and write to a port with GNAT. > Bob Leif > Depends what version of Windows you mean. In general one can not execute the various x86 port instructions on NT, 2000, XP series windows from user space code. Even if you get a compiler to generate the instruction, the OS will trap it and raise an error. So, the example code I hope to find will absolutely NOT work under NT, 2000, XP.