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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e3613319caa06b62 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: how to get the compile time of an ada program with gnat Reply-To: anon@anon.org (anon) References: <469f2c81$0$25909$ba4acef3@news.orange.fr> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 19 Jul 2007 17:55:27 GMT NNTP-Posting-Host: 12.65.168.234 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1184867727 12.65.168.234 (Thu, 19 Jul 2007 17:55:27 GMT) NNTP-Posting-Date: Thu, 19 Jul 2007 17:55:27 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:16519 Date: 2007-07-19T17:55:27+00:00 List-Id: The best way is to use the GNAT1. The program is included in the gnat standard package. It is the build compiler that gnat uses to build the new or updated gnat system and includes a list of tech information after each run. Tech output file is "Standard Error". The thing is the output code is two files the first is the ".ali" file and a source assembly file. Then you must use an assembler or use "gcc -c" to gen the object module. An Example: gnat compile sample.adb => gnat1 sample.adb => gcc -c sample.s another example that produces a listing is: gnat compile example.adb -gnatl use gnat1 -gnatl example.adb gcc -c example.s Example of the output: For a program called compile.adb. Using gnat1 compile.adb The output look like this : compile compile___clean compile__L_1__B11b___clean compile__L_1__B16b___clean compile__L_1__B27b___clean compile__L_1__B44b___clean time in parse: 0.850000 time in integration: 0.000000 time in jump: 0.000000 time in cse: 0.000000 time in loop: 0.000000 time in cse2: 0.000000 time in branch-prob: 0.000000 time in flow: 0.010000 time in combine: 0.000000 time in sched: 0.000000 time in local-alloc: 0.000000 time in global-alloc: 0.050000 time in sched2: 0.000000 time in dbranch: 0.000000 time in shorten-branch: 0.000000 time in stack-reg: 0.000000 time in final: 0.020000 time in varconst: 0.010000 time in symout: 0.000000 time in dump: 0.000000 In <469f2c81$0$25909$ba4acef3@news.orange.fr>, "frank singhoff" writes: > > >hello the list, > >does somebody know how we can get the compile time of an > ada program compiled with gnat gpl ?? > >is these an ada gnat package which provides such a service, or should i do >it >which a script/makefile .... > > >thanks very much ! > >frank ... who is waiting for the sun at brest :-(( > > > > > > >