[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] reachable top-level functions and variables
From: |
Sven Hartrumpf |
Subject: |
Re: [Chicken-users] reachable top-level functions and variables |
Date: |
Fri, 14 Jul 2017 07:45:46 +0200 (CEST) |
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.
MF wrote, 2017-07-13 04:20:
> Have you tried the declaration (optimize-dead-definitions) in Gambit?
> There’s also the -report compiler option.
Thanks for the suggestions.
I could not use Gambit for my sources because they need
cond-expand AND syntax-rules AND Gambit keywords.
The interesting Gambit feature made me write a little preprocessor that
expands (top-level) cond-expand's and define-syntax (via alexpander)
so that I might be able to port my sources to Gambit again :-)
BTW (documentation of -report):
gambit.pdf (Sec. 3.3) says: "defined, referenced, mutated and called"
while the compiler uses: D A R C
Should this be matched in reading order?
Ciao
Sven
Re: [Chicken-users] reachable top-level functions and variables, Mario Domenech Goulart, 2017/07/13
Re: [Chicken-users] reachable top-level functions and variables, Marc Feeley, 2017/07/13
- Re: [Chicken-users] reachable top-level functions and variables,
Sven Hartrumpf <=