#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fstream.h>
#include <iostream>
#include "types.h"
Include dependency graph for driver2.cc:
Go to the source code of this file.
Defines | |
#define | OUTPUT_EXT ".ii" |
#define | CPP_EXT ".occ" |
#define | SLIB_EXT ".so" |
#define | OBJ_EXT ".o" |
Functions | |
int | execvp (...) |
int | wait (int *) |
void | ParseCmdOptions (int from, int argc, char **argv, char *&source) |
void | AddCppOption (const char *arg) |
void | AddCcOption (const char *arg) |
void | CloseCcOptions () |
void | ShowCommandLine (const char *cmd, const char **args) |
bool | ParseTargetSpecificOptions (char *arg, char *&source_file) |
void | RunLinker () |
char * | RunPreprocessor (const char *src) |
char * | OpenCxxOutputFileName (const char *src) |
void | RunCompiler (const char *src, const char *occsrc) |
void | RunSoCompiler (const char *src_file) |
void * | LoadSoLib (char *file_name) |
void * | LookupSymbol (void *handle, char *symbol) |
char * | MakeTempFilename (const char *src, const char *suffix) |
Variables | |
const char * | compilerName = "g++" |
const char * | linkerName = "ld" |
const char * | opencxxErrorMessage = " Error(s). OpenC++ stops.\n" |
bool | showProgram |
bool | doCompile |
bool | makeExecutable |
bool | doPreprocess |
bool | doTranslate |
bool | verboseMode |
bool | regularCpp |
bool | makeSharedLibrary |
char * | sharedLibraryName |
bool | preprocessTwice |
const char * | cppArgv [] |
const char * | ccArgv [] |
|
Definition at line 60 of file driver2.cc. Referenced by RunPreprocessor(). |
|
Definition at line 62 of file driver2.cc. |
|
Definition at line 57 of file driver2.cc. Referenced by OpenCxxOutputFileName(). |
|
Definition at line 61 of file driver2.cc. Referenced by RunCompiler(), RunLinker(), and RunSoCompiler(). |
|
|
|
|
|
|
|
Referenced by process(), RunCompiler(), RunLinker(), RunPreprocessor(), and RunSoCompiler(). |
|
Definition at line 356 of file driver2.cc. References nil, RTLD_GLOBAL, and RTLD_LAZY. |
|
Definition at line 371 of file driver2.cc. References nil. |
|
Definition at line 424 of file driver2.cc. References nil. |
|
Definition at line 223 of file driver2.cc. References MakeTempFilename(), and OUTPUT_EXT. |
|
|
|
Definition at line 116 of file driver2.cc. References FALSE. |
|
Definition at line 241 of file driver2.cc. References AddCcOption(), ccArgv, CloseCcOptions(), compilerName, execvp(), makeExecutable, makeSharedLibrary, MakeTempFilename(), nil, sharedLibraryName, ShowCommandLine(), SLIB_EXT, and wait(). |
|
Definition at line 121 of file driver2.cc. References AddCcOption(), ccArgv, CloseCcOptions(), compilerName, doCompile, execvp(), linkerName, makeExecutable, MakeTempFilename(), nil, sharedLibraryName, ShowCommandLine(), SLIB_EXT, and wait(). |
|
Definition at line 173 of file driver2.cc. References AddCppOption(), compilerName, CPP_EXT, cppArgv, execvp(), MakeTempFilename(), regularCpp, ShowCommandLine(), and wait(). |
|
Definition at line 308 of file driver2.cc. References compilerName, execvp(), MakeTempFilename(), ShowCommandLine(), SLIB_EXT, and wait(). |
|
|
|
Referenced by process(), RunCompiler(), RunLinker(), RunPreprocessor(), and RunSoCompiler(). |
|
Definition at line 93 of file driver2.cc. Referenced by RunCompiler(), and RunLinker(). |
|
Definition at line 74 of file driver2.cc. Referenced by RunCompiler(), RunLinker(), RunPreprocessor(), and RunSoCompiler(). |
|
Definition at line 92 of file driver2.cc. Referenced by RunPreprocessor(). |
|
Definition at line 82 of file driver2.cc. Referenced by RunLinker(). |
|
Definition at line 84 of file driver2.cc. |
|
Definition at line 85 of file driver2.cc. |
|
Definition at line 76 of file driver2.cc. Referenced by RunLinker(). |
|
Definition at line 83 of file driver2.cc. Referenced by RunCompiler(), and RunLinker(). |
|
Definition at line 88 of file driver2.cc. Referenced by RunCompiler(). |
|
Definition at line 77 of file driver2.cc. |
|
Definition at line 90 of file driver2.cc. Referenced by ParseCmdOptions(), and ParseOptions(). |
|
Definition at line 87 of file driver2.cc. Referenced by RunPreprocessor(). |
|
Definition at line 89 of file driver2.cc. Referenced by ParseCmdOptions(), ParseOptions(), RunCompiler(), and RunLinker(). |
|
Definition at line 81 of file driver2.cc. |
|
Definition at line 86 of file driver2.cc. |