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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0123581076a0cf3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-08 16:12:17 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!uunet!telesoft!kst From: kst@alsys.com (Keith Thompson @pulsar) Subject: Re: Ada ad in Embedded Systems Programming stinks Message-ID: Sender: news@alsys.com (USENET News Admin @flash) Organization: Alsys Group, San Diego, CA, USA References: <34ecqc$b5q@source.asset.com> Date: Thu, 8 Sep 1994 06:32:27 GMT Date: 1994-09-08T06:32:27+00:00 List-Id: In jgoodsen@trinidad.radsoft.com (John Goodsen) writes: [...] > Wrong. A respectable ANSI C compiler will yell louder than a warning. > And puke out on the compile when you don't pass a pointer when expected. One data point: Sun's ANSI C compiler, in strict ANSI mode (cc -Xc) issues a warning: pulsar 1) cat -n foo.c 1 #include 2 3 void func(int *p) 4 { 5 printf("p = %p\n", p); 6 } 7 8 int main(int argc, char **argv) 9 { 10 int i = 42; 11 func(i); 12 exit(0); 13 } pulsar 2) cc -Xc foo.c "foo.c", line 11: warning: improper pointer/integer combination: arg #1 I don't know what other ANSI C compilers do, but I presume Sun's is one of the most commonly used. -- Keith Thompson (The_Other_Keith) kst@alsys.com TeleSoft^H^H^H^H^H^H^H^H Alsys, Inc. 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718 /user/kst/.signature: I/O error (core dumped)