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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Ada Implementation of functions and produce C for exotic architectures (Expressif) Date: Wed, 11 Apr 2018 12:41:47 -0700 Organization: A noiseless patient Spider Message-ID: <87in8xwmx0.fsf@nightsong.com> References: <552a0627-2a6f-4b51-a1a0-fdc70cc210a7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="f32f0bdf5d2585b9e35b601f1bf212ec"; logging-data="8872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1H6Zgk2zCb5zIOApa/1yU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:rTXoqfQydYe3+aQ71GrqppGmp2k= sha1:QCrDkhRFwWuYeQvuaHMuEjsecC4= Xref: reader02.eternal-september.org comp.lang.ada:51447 Date: 2018-04-11T12:41:47-07:00 List-Id: "Dan'l Miller" writes: > C is not a backend target of the GNAT compiler, despite C being a > syntactic/semantic near-isomorph of PDP-11 assembly language People erroneously believe that and then freak out when they find it isn't true. Consider signed arithmetic overflow being twos-complement arithmetic in PDP-11 assembly language, vs being undefined behavior in C. In Ada it's supposed to signal a constraint error iiuc. So C wouldn't really be a natural target for an Ada compiler. C is not a "portable assembler" despite the wishes or dreams of some of its users.