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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: How to convert a certain value to text Date: Sun, 10 May 2020 09:30:27 +0200 Organization: Adalog Message-ID: References: <5e8adbd9$0$18429$e4fe514c@news.kpn.nl> <5e8b367f$0$1690$e4fe514c@news.kpn.nl> <99520eea-89ff-4ddf-9371-ce23fa885b6c@googlegroups.com> <544c8bc4-4c2c-4649-872c-f4c0067e6cea@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 10 May 2020 07:30:26 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1e54b0c331095451d2eb3a0fa85f65c8"; logging-data="29297"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LHji+p66OMPBjeA9Rdrqu" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:zEtXG6PMl2jVzp607ZIjEeGomLw= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58644 Date: 2020-05-10T09:30:27+02:00 List-Id: Le 09/05/2020 à 23:09, Oliver Kellogg a écrit : > Actually, I've had disappointing experiences with *-Og* , in > particular on trying to inspect function arguments and local > variables. Most of the time GDB said "optimized out" or similar. > Tried it on various GCC versions <= 8. > Yes, GCC is very good at eliminating/optimizing unnecessary variables. If you want to inspect your code "as written", use -O0 -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr