public class ADSCCompiler extends CommandLineCCompiler
Modifier and Type | Field and Description |
---|---|
private static ADSCCompiler |
armcc
Singleton for ARM 32-bit C compiler
|
private static ADSCCompiler |
armcpp
Singleton for ARM 32-bit C++ compiler
|
private static java.lang.String[] |
headerExtensions
Header file extensions
|
private static java.lang.String[] |
sourceExtensions
Source file extensions
|
private static ADSCCompiler |
tcc
Singleton for ARM 16-bit C compiler
|
private static ADSCCompiler |
tcpp
Singleton for ARM 16-bit C++ compiler
|
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Modifier | Constructor and Description |
---|---|
private |
ADSCCompiler(java.lang.String command,
boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
Private constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addImpliedArgs(java.util.Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
java.lang.Boolean rtti,
OptimizationEnum optimization) |
protected void |
addWarningSwitch(java.util.Vector args,
int warnings)
Adds flags that customize the warnings reported
Compiler does not appear to have warning levels but ability to turn off
specific errors by explicit switches, could fabricate levels by
prioritizing errors.
|
static ADSCCompiler |
getArmCC()
Singleton for ARM 32-bit C compiler
|
static ADSCCompiler |
getArmCpp()
Singleton for ARM 32-bit C++ compiler
|
protected void |
getDefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define,
java.lang.String value)
Add command line options for preprocessor macro
|
protected java.io.File[] |
getEnvironmentIncludePath()
ARMINC environment variable contains the default include path
|
protected java.lang.String |
getIncludeDirSwitch(java.lang.String source)
Returns command line option to specify include directory
|
Linker |
getLinker(LinkType type)
Gets the linker that is associated with this processors
|
int |
getMaximumCommandLength()
Maximum command line length
|
static ADSCCompiler |
getThumbCC()
Singleton for ARM 16-bit C compiler
|
static ADSCCompiler |
getThumbCpp()
Singleton for ARM 16-bit C++ compiler
|
protected void |
getUndefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define) |
private static void |
quoteFile(java.lang.StringBuffer buf,
java.lang.String outPath) |
createParser
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bid, changeEnvironment
private static final java.lang.String[] headerExtensions
private static final java.lang.String[] sourceExtensions
private static final ADSCCompiler armcc
private static final ADSCCompiler armcpp
private static final ADSCCompiler tcc
private static final ADSCCompiler tcpp
private ADSCCompiler(java.lang.String command, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
command
- executable namenewEnvironment
- Change environmentenv
- New environmentpublic static ADSCCompiler getArmCC()
public static ADSCCompiler getArmCpp()
public static ADSCCompiler getThumbCC()
public static ADSCCompiler getThumbCpp()
private static void quoteFile(java.lang.StringBuffer buf, java.lang.String outPath)
protected void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
addImpliedArgs
in class CommandLineCompiler
protected void addWarningSwitch(java.util.Vector args, int warnings)
addWarningSwitch
in class CommandLineCompiler
CommandLineCompiler.addWarningSwitch(java.util.Vector,
int)
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
getDefineSwitch
in class CommandLineCompiler
CommandLineCompiler.getDefineSwitch(java.lang.StringBuffer,
java.lang.String, java.lang.String)
protected java.io.File[] getEnvironmentIncludePath()
getEnvironmentIncludePath
in class CommandLineCompiler
CommandLineCompiler.getEnvironmentIncludePath()
protected java.lang.String getIncludeDirSwitch(java.lang.String source)
getIncludeDirSwitch
in class CommandLineCompiler
public Linker getLinker(LinkType type)
Processor
public int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineCompiler
CommandLineCompiler.getMaximumCommandLength()
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
getUndefineSwitch
in class CommandLineCompiler