Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Sven Hartrumpf
Hi Marc. SH wrote, 2017-07-12: >> I am looking for a compiler option that will produce output >> that could give me a start for determining a list of reachable >> top-level functions/variables. I have tried other compilers but they >> tend to deliver too many false positives for complex programs.

Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Marc Feeley
Have you tried the declaration (optimize-dead-definitions) in Gambit? There’s also the -report compiler option. Marc > On Jul 12, 2017, at 1:56 PM, Sven Hartrumpf wrote: > > Hi all. > > I am looking for a compiler option that will produce output > that could give me a

Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Peter Bex
On Thu, Jul 13, 2017 at 09:19:55AM +0200, Sven Hartrumpf wrote: > Hi Peter. > > Peter Bex schrieb am 2017-07-13 09:05: > > On Thu, Jul 13, 2017 at 08:52:31AM +0200, Sven Hartrumpf wrote: > >> Yes, functions that can never be called from the compiled program > >> are still

Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Sven Hartrumpf
Hi Peter. Peter Bex schrieb am 2017-07-13 09:05: > On Thu, Jul 13, 2017 at 08:52:31AM +0200, Sven Hartrumpf wrote: >> Yes, functions that can never be called from the compiled program >> are still there. >> Will the profile output of the compiled program

Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Peter Bex
On Thu, Jul 13, 2017 at 08:52:31AM +0200, Sven Hartrumpf wrote: > Yes, functions that can never be called from the compiled program > are still there. > Will the profile output of the compiled program (-accumulate-profile) > be a reliable filter if I avoid inlining and make > sure that all

Re: [Chicken-users] reachable top-level functions and variables

2017-07-13 Thread Sven Hartrumpf
Hi Evan. Evan Hanson , 2017-07-13 11:28: > Hi Sven, > > Have you tried `csc -analyze-only -debug d`? No, the output could be a useful start. > This will give you a full list of value definitions, including module > prefixes for any identifiers bound within a module. This

Re: [Chicken-users] reachable top-level functions and variables

2017-07-12 Thread Mario Domenech Goulart
Hello Sven, On Wed, 12 Jul 2017 19:56:36 +0200 (CEST) Sven Hartrumpf wrote: > I am looking for a compiler option that will produce output > that could give me a start for determining a list of reachable > top-level functions/variables. I have tried other compilers but they >

Re: [Chicken-users] reachable top-level functions and variables

2017-07-12 Thread Evan Hanson
Hi Sven, Have you tried `csc -analyze-only -debug d`? This will give you a full list of value definitions, including module prefixes for any identifiers bound within a module. This may not be precisely what you mean by "reachable", but it might be a start. Cheers, Evan

[Chicken-users] reachable top-level functions and variables

2017-07-12 Thread Sven Hartrumpf
Hi all. I am looking for a compiler option that will produce output that could give me a start for determining a list of reachable top-level functions/variables. I have tried other compilers but they tend to deliver too many false positives for complex programs. Ciao Sven