comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Modern optimizing compilers
Date: Mon, 21 Aug 2017 16:19:54 -0700 (PDT)
Date: 2017-08-21T16:19:54-07:00	[thread overview]
Message-ID: <30f25a94-fc6d-4663-9405-d4d8601d6681@googlegroups.com> (raw)
In-Reply-To: <onfg07$140e$1@gioia.aioe.org>

You can compile a package containing a test procedure putting 123 into an Integer field of a record (tagged or not) and look at the assembler output.
With GNAT it's gcc -S -O2 test_pkg.adb
NB: the procedure probably needs to feed then an "out" parameter to prevent the compiler optimizing out completely the assignment with 123.

Gautier
_____________________________________________________________
A free online game in Ada: http://pasta.phyrama.com/game.html

  reply	other threads:[~2017-08-21 23:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-21 20:32 Modern optimizing compilers Victor Porton
2017-08-21 23:19 ` gautier_niouzes [this message]
2017-08-22  1:11   ` Victor Porton
2017-08-22  1:17     ` Victor Porton
2017-08-22  1:20       ` Victor Porton
2017-08-22  7:28         ` gautier_niouzes
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox