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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe20e0e26d48bade X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!not-for-mail Sender: malo@0x50a5b1ce.boanxx18.adsl-dhcp.tele.dk Newsgroups: comp.lang.ada Subject: Re: pragma Pathway - optimising optimizing profiling References: From: Mark Lorenzen Date: 14 Aug 2004 12:07:21 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: TDC Totalloesninger NNTP-Posting-Host: 80.165.177.206 X-Trace: 1092477884 dtext02.news.tele.dk 175 80.165.177.206:18772 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:2729 Date: 2004-08-14T12:07:21+02:00 List-Id: "Nick Roberts" writes: > Thanks to all those people who gave me their comments about deadlock > and pragma Zero_Fill etc. > > I'd like to ask people's comments about another pragma I intend to > implement in ECLAT. [Large presentation of pragma Pathway removed] Optimization is a job for the compiler and not the programmer. There will of course always be special cases, where the compiler needs a guiding hand in order to choose the correct optimization. But profile-driven optimization is not one of those cases, when we talk about the GNAT compiler. According to this announcement http://gcc.gnu.org/news/profiledriven.html there is (or at least being worked on) an infrastructure in GCC to use the output from a profiling tool (such as the GNU profiler) and feed it back into GCC in order to perform optimizations that will benefit the recorded profile. Please correct me if I am wrong. Btw.: If you want to count the number of time a functions has been called, you can use the GNU profiler. This mimics your pragma, but does not need code instrumentation. > > TIA, Nick Roberts Regards, - Mark Lorenzen