Package net.sf.antcontrib.cpptasks.arm
Class ADSCCompiler
- java.lang.Object
-
public class ADSCCompiler extends CommandLineCCompiler
Adapter for the ARM C Compilers See Doc No: ARM DUI 0151A, Issued: Nov 2001 at http://www.arm.com/arm/User_Guides?OpenDocument- Author:
- Curt Arnold
-
-
Field Summary
-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 compilerstatic ADSCCompiler
getArmCpp()
Singleton for ARM 32-bit C++ compilerprotected void
getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
Add command line options for preprocessor macroprotected java.io.File[]
getEnvironmentIncludePath()
ARMINC environment variable contains the default include pathprotected java.lang.String
getIncludeDirSwitch(java.lang.String source)
Returns command line option to specify include directoryLinker
getLinker(LinkType type)
Gets the linker that is associated with this processorsint
getMaximumCommandLength()
Maximum command line lengthstatic ADSCCompiler
getThumbCC()
Singleton for ARM 16-bit C compilerstatic ADSCCompiler
getThumbCpp()
Singleton for ARM 16-bit C++ compilerprotected void
getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
-
-
-
-
Method Detail
-
getArmCC
public static ADSCCompiler getArmCC()
Singleton for ARM 32-bit C compiler
-
getArmCpp
public static ADSCCompiler getArmCpp()
Singleton for ARM 32-bit C++ compiler
-
getThumbCC
public static ADSCCompiler getThumbCC()
Singleton for ARM 16-bit C compiler
-
getThumbCpp
public static ADSCCompiler getThumbCpp()
Singleton for ARM 16-bit C++ compiler
-
addImpliedArgs
protected void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
- Specified by:
addImpliedArgs
in classCommandLineCompiler
-
addWarningSwitch
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.- Specified by:
addWarningSwitch
in classCommandLineCompiler
- See Also:
CommandLineCompiler.addWarningSwitch(java.util.Vector, int)
-
getDefineSwitch
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
Add command line options for preprocessor macro- Specified by:
getDefineSwitch
in classCommandLineCompiler
- See Also:
CommandLineCompiler.getDefineSwitch(java.lang.StringBuffer, java.lang.String, java.lang.String)
-
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
ARMINC environment variable contains the default include path- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
- See Also:
CommandLineCompiler.getEnvironmentIncludePath()
-
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String source)
Returns command line option to specify include directory- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
-
getLinker
public Linker getLinker(LinkType type)
Description copied from interface:Processor
Gets the linker that is associated with this processors
-
getMaximumCommandLength
public int getMaximumCommandLength()
Maximum command line length- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
- See Also:
CommandLineCompiler.getMaximumCommandLength()
-
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
- Specified by:
getUndefineSwitch
in classCommandLineCompiler
-
-