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,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 05:26:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!skynet.be!skynet.be!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: Mon, 15 Oct 2001 12:18:27 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <9q7na102nqn@drn.newsguy.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1003148307 1366 217.17.192.37 (15 Oct 2001 12:18:27 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 15 Oct 2001 12:18:27 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14520 Date: 2001-10-15T12:18:27+00:00 List-Id: * Vector..@ wrote: >What is wrong with pthreads? > >Yes, it is not part of the language, but it is a standard (POSIX), and >available in all platforms (except may on windows, I am not sure, but >who cares about widnows anyway). My NEXTSTEP can't even compile zlib (needed by openssh-portable), so I'm pretty disilusionated from Posix. OTOH one of my DSPs has Character'Size = 32, a pretty common problem to almost all C based programs, because they tend to use constructs like for (unsigned char c = 0; c < UCHAR_MAX + 1; c++) { ... } instead of the correct idiom unsigned char c = 0; do { ... } while (c++ != UCHAR_MAX); for for c in Character'Range loop ... end loop; This DSP is always funny because sizeof(int[8]) == 4. This causes several memory reservation problems. But even with Linux on x86 you may run into common idiom problems: int fd = open (...); fails if you compile with -mshort (some programs do this), because the kernel limits NR_OPEN to 1024*1024. ...