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
-
-
Field Summary
Fields Modifier and Type Field Description private static ADSCCompiler
armcc
Singleton for ARM 32-bit C compilerprivate static ADSCCompiler
armcpp
Singleton for ARM 32-bit C++ compilerprivate static java.lang.String[]
headerExtensions
Header file extensionsprivate static java.lang.String[]
sourceExtensions
Source file extensionsprivate static ADSCCompiler
tcc
Singleton for ARM 16-bit C compilerprivate static ADSCCompiler
tcpp
Singleton for ARM 16-bit C++ compiler-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ADSCCompiler(java.lang.String command, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
Private constructor
-
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)
private static void
quoteFile(java.lang.StringBuffer buf, java.lang.String outPath)
-
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
-
-
-
-
Field Detail
-
headerExtensions
private static final java.lang.String[] headerExtensions
Header file extensions
-
sourceExtensions
private static final java.lang.String[] sourceExtensions
Source file extensions
-
armcc
private static final ADSCCompiler armcc
Singleton for ARM 32-bit C compiler
-
armcpp
private static final ADSCCompiler armcpp
Singleton for ARM 32-bit C++ compiler
-
tcc
private static final ADSCCompiler tcc
Singleton for ARM 16-bit C compiler
-
tcpp
private static final ADSCCompiler tcpp
Singleton for ARM 16-bit C++ compiler
-
-
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
-
quoteFile
private static void quoteFile(java.lang.StringBuffer buf, java.lang.String outPath)
-
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
-
-