From: gautier_niouzes@hotmail.com
Subject: Re: link errors with GNAT GPL 2016 and gprof
Date: Mon, 4 Sep 2017 14:01:18 -0700 (PDT)
Date: 2017-09-04T14:01:18-07:00 [thread overview]
Message-ID: <65a936fb-8fb7-47b4-adf8-88f37a98bff3@googlegroups.com> (raw)
In-Reply-To: <0fad567d-4c9d-42e3-9fb6-e3dc4a67c6db@googlegroups.com>
In this case, extending the zipada.gpr example, the following is working on GPL 2017 (with some luck, on 2016 or earlier too) :
zzz.gpr :
----
with "zipada";
project ZZZ is
for Main use ("zzz.adb");
for Source_Dirs use ("zzz");
for Exec_Dir use ".";
package Ide renames ZipAda.Ide;
package Builder renames ZipAda.Builder;
package Compiler renames ZipAda.Compiler;
package Binder renames ZipAda.Binder;
package Linker renames ZipAda.Linker;
end ZZZ;
----
New directory "zzz", and a copy of tools/zipada.adb as zzz/zzz.adb.
Then:
gprbuild -P ZZZ -XBuild_Mode=Profiling
Testing the executable:
zzz gpr *.gpr
(creates a Zip file gpr.zip, plus gmon.out)
Run the profiler:
gprof zzz.exe >zzz.log
(creates zzz.log with profiling report)
HTH
G.
next prev parent reply other threads:[~2017-09-04 21:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-02 22:02 link errors with GNAT GPL 2016 and gprof Stephen Leake
2017-09-03 16:01 ` Anh Vo
2017-09-03 18:23 ` Stephen Leake
2017-09-03 19:26 ` gautier_niouzes
2017-09-04 0:07 ` Stephen Leake
2017-09-04 21:01 ` gautier_niouzes [this message]
2017-09-04 5:52 ` Jacob Sparre Andersen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox