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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9e2776c05028676e X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Why Ada is not the Commercial Lang of Choice Date: 1997/06/17 Message-ID: <5o5hv9$dcd$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 249019058 Distribution: world References: <33a1c14d.155787285@news.mhv.net> X-XXMessage-ID: Organization: Royal Melbourne Institute of Technology Newsgroups: comp.lang.ada Date: 1997-06-17T00:00:00+00:00 List-Id: Paul Van Bellinghen writes: Claim: It is much easier in C, for example, to output a data word to an I/O device that is memory mapped. Supporting Evidence: 1 One need only define a pointer 2 and assign it the memory mapped address 3 then store the desired data value to the contents of the pointer. Example: #define mem_map_addr B0100040 unsigned int *p; p = (unsigned int *) mem_map_addr; *p = 0x00344556; Claim: It is harder to do it in Ada because i write it out in more words. Supporting Evidence 1 [You define a type, then a pointer] 2 and assign it the address 3 and then assign it the data value 4 [you have other options, notably an address clause for an item] Example: None given. Yes, it is all so much more clearer now. Thank you Paul. Dale