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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: Teaching C/C++ from Ada perspective? Date: Sat, 7 Jul 2018 13:53:33 +0200 Organization: A noiseless patient Spider Message-ID: References: <856189aa-fa00-4960-929e-174f352310ad@googlegroups.com> <39fce60c-9f56-42fb-b679-fa08810b00ee@googlegroups.com> <3701bf07-89a5-4cb0-a704-5aebb589ca79@googlegroups.com> <2f5e4ce0-94e8-4b94-9da7-045ec90a9b22@googlegroups.com> <18554067-1382-4b43-a832-2d27aa5117d7@googlegroups.com> <8dc19505-b68a-403c-a164-f1de1864f3f1@googlegroups.com> <559657f8-bbf4-4a70-9449-f85bc98d6c6b@googlegroups.com> <590d4672-4aef-42a5-823c-57ccd291115a@googlegroups.com> <8de6b5ba-25ab-4d46-b80c-1544f43a9b05@googlegroups.com> <670baa25-a987-45a0-991f-ec3aa2878233@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 7 Jul 2018 11:53:21 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="bf49fefee3dd4be29a59b9ce3a5826e9"; logging-data="32408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rTFrbTXxU5tJFc3DYV81R" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:Tl4WK7wZyybflVHnYB4mGOKTJ78= In-Reply-To: Xref: reader02.eternal-september.org comp.lang.ada:53718 Date: 2018-07-07T13:53:33+02:00 List-Id: On 2018-07-06 21:43, Dmitry A. Kazakov wrote: > It is a really a plague in C++: the debug version works and the release > crashes. Never happened in Ada to me. Good for you. In the past - this milleneum - we had crashes with optimized version several times, in fact so many that we ran production code with no optimization untilo recently (se below). Bugs like sum of floating types were calculated wrong, and bad stacktraces (pointed to row 4345 in a file with 300 rows..) to many times made us use no optimization. This was gnat pro on windows and aix (both 32 bits) However we do use -Os now, since the exe-files are too big for the linker. (ca 300 Mb) The problems mentioned above was sent to adacore and they were fixed. -- -- Björn