cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
gcc_mode.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Base class for command line interpretation
4
5
Author: CM Wintersteiger
6
7
Date: June 2006
8
9
\*******************************************************************/
10
13
14
#ifndef CPROVER_GOTO_CC_GCC_MODE_H
15
#define CPROVER_GOTO_CC_GCC_MODE_H
16
17
#include "
gcc_message_handler.h
"
18
#include "
goto_cc_mode.h
"
19
20
#include <
ansi-c/gcc_version.h
>
21
22
#include <map>
23
#include <set>
24
25
class
compilet
;
26
27
class
gcc_modet
:
public
goto_cc_modet
28
{
29
public
:
30
int
doit
()
final
;
31
void
help_mode
()
final
;
32
33
gcc_modet
(
34
goto_cc_cmdlinet
&_cmdline,
35
const
std::string &_base_name,
36
bool
_produce_hybrid_binary);
37
38
protected
:
39
gcc_message_handlert
gcc_message_handler
;
40
41
const
bool
produce_hybrid_binary
;
42
43
std::string
native_tool_name
;
44
45
const
std::string
goto_binary_tmp_suffix
;
46
48
const
std::map<std::string, std::set<std::string>>
arch_map
;
49
50
int
preprocess
(
51
const
std::string &language,
52
const
std::string &src,
53
const
std::string &dest,
54
bool
act_as_bcc);
55
57
int
run_gcc
(
const
compilet
&compiler);
58
59
int
gcc_hybrid_binary
(
compilet
&compiler);
60
61
int
asm_output
(
62
bool
act_as_bcc,
63
const
std::list<std::string> &preprocessed_source_files,
64
const
compilet
&compiler);
65
66
static
bool
needs_preprocessing
(
const
std::string &);
67
68
gcc_versiont
gcc_version
;
69
};
70
71
#endif
// CPROVER_GOTO_CC_GCC_MODE_H
compilet
Definition
compile.h:32
gcc_message_handlert
Definition
gcc_message_handler.h:15
gcc_modet::native_tool_name
std::string native_tool_name
Definition
gcc_mode.h:43
gcc_modet::preprocess
int preprocess(const std::string &language, const std::string &src, const std::string &dest, bool act_as_bcc)
call gcc for preprocessing
Definition
gcc_mode.cpp:837
gcc_modet::gcc_modet
gcc_modet(goto_cc_cmdlinet &_cmdline, const std::string &_base_name, bool _produce_hybrid_binary)
Definition
gcc_mode.cpp:95
gcc_modet::needs_preprocessing
static bool needs_preprocessing(const std::string &)
Definition
gcc_mode.cpp:294
gcc_modet::doit
int doit() final
does it.
Definition
gcc_mode.cpp:309
gcc_modet::goto_binary_tmp_suffix
const std::string goto_binary_tmp_suffix
Definition
gcc_mode.h:45
gcc_modet::run_gcc
int run_gcc(const compilet &compiler)
call gcc with original command line
Definition
gcc_mode.cpp:916
gcc_modet::gcc_message_handler
gcc_message_handlert gcc_message_handler
Definition
gcc_mode.h:39
gcc_modet::help_mode
void help_mode() final
display command line help
Definition
gcc_mode.cpp:1165
gcc_modet::arch_map
const std::map< std::string, std::set< std::string > > arch_map
Associate CBMC architectures with processor names.
Definition
gcc_mode.h:48
gcc_modet::gcc_version
gcc_versiont gcc_version
Definition
gcc_mode.h:68
gcc_modet::produce_hybrid_binary
const bool produce_hybrid_binary
Definition
gcc_mode.h:41
gcc_modet::asm_output
int asm_output(bool act_as_bcc, const std::list< std::string > &preprocessed_source_files, const compilet &compiler)
Definition
gcc_mode.cpp:1076
gcc_modet::gcc_hybrid_binary
int gcc_hybrid_binary(compilet &compiler)
Definition
gcc_mode.cpp:960
gcc_versiont
Definition
gcc_version.h:20
goto_cc_cmdlinet
Definition
goto_cc_cmdline.h:20
goto_cc_modet::goto_cc_modet
goto_cc_modet(goto_cc_cmdlinet &, const std::string &_base_name, message_handlert &)
constructor
Definition
goto_cc_mode.cpp:33
gcc_message_handler.h
gcc_version.h
goto_cc_mode.h
Command line interpretation for goto-cc.
goto-cc
gcc_mode.h
Generated by
1.17.0