From 095ec29088ede2c5ca7db813d56001efb63aa97e Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sun, 23 Aug 2015 14:28:29 +0200 Subject: Track the locations of local variables using EF_debug annotations. SimplLocals: - record locations of stack-allocated variables with annotations (of kind 5) at the beginning of the function; - mark every assignment to non-stack-allocated variables with an annotation of kind 2. Debugvar: (new pass!) - perform availability analysis for debug annotations of kind 2 - insert "start of live range" and "end of live range" annotations (kind 3 and 4) to delimit intervals of PCs where the location of a local variable is known. --- extraction/extraction.v | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extraction') diff --git a/extraction/extraction.v b/extraction/extraction.v index ecd2853a..6327f871 100644 --- a/extraction/extraction.v +++ b/extraction/extraction.v @@ -100,6 +100,8 @@ Extract Constant Compopts.optim_redundancy => "fun _ -> !Clflags.option_fredundancy". Extract Constant Compopts.thumb => "fun _ -> !Clflags.option_mthumb". +Extract Constant Compopts.debug => + "fun _ -> !Clflags.option_g". (* Compiler *) Extract Constant Compiler.print_Clight => "PrintClight.print_if". -- cgit