comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Metric and RTL files ?
@ 2019-01-11 10:34 gautier_niouzes
  2019-01-12 13:34 ` gautier_niouzes
  0 siblings, 1 reply; 2+ messages in thread
From: gautier_niouzes @ 2019-01-11 10:34 UTC (permalink / raw)


Hi everybody,

For running GNAT metric (for Windows, GPL 2017 or CE 2018) I'd like to include the RTL sources as well. There is a "-a" switch but it seems to be ineffective. When I'm forcing visibility of RTL sources, only ada.ads and system.ads are processed. Guessing it is a "crunched name" issue (RTL file names forced to 8 character names) I've tried other tricks without success.

My question is: is there a way to get the RTL source metrics (of the source files actually used) with GNAT Metric?

I'm using the command
gnatmetric -a -xs -nt -j0 -Pmyproj.gpr -U somemain.adb 

TIA
G.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GNAT Metric and RTL files ?
  2019-01-11 10:34 GNAT Metric and RTL files ? gautier_niouzes
@ 2019-01-12 13:34 ` gautier_niouzes
  0 siblings, 0 replies; 2+ messages in thread
From: gautier_niouzes @ 2019-01-12 13:34 UTC (permalink / raw)


In the meantime I've found a workaround by using the gnathtml.pl script. I've customized the script a bit by removing the H1 headers. The result is a few hundreds of HTML files with the sources of units actually used: the script does find all dependencies, recursively, through the .ali files - including the RTL. Then I group the HTML files together, convert them back to text files, pass them through Adalog's Normalize tool for removing comments and empty lines, count lines with the wc command, and the job is done.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-12 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-11 10:34 GNAT Metric and RTL files ? gautier_niouzes
2019-01-12 13:34 ` gautier_niouzes

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