net.sf.antcontrib.cpptasks.arm

Class ADSCCompiler

Implemented Interfaces:
Cloneable, Compiler, Processor

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

protected void
addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
Adds command switches for generic configuration options
protected void
addWarningSwitch(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(StringBuffer buffer, String define, String value)
Add command line options for preprocessor macro
protected File[]
getEnvironmentIncludePath()
ARMINC environment variable contains the default include path
protected String
getIncludeDirSwitch(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(StringBuffer buffer, String define)

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler

createParser

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler

addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler

canParse, createConfiguration, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Method Details

addImpliedArgs

protected void addImpliedArgs(Vector args,
                              boolean debug,
                              boolean multithreaded,
                              boolean exceptions,
                              LinkType linkType,
                              Boolean rtti,
                              OptimizationEnum optimization)
Adds command switches for generic configuration options
Overrides:
addImpliedArgs in interface CommandLineCompiler
See Also:
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.addImpliedArgs(java.util.Vector, boolean, boolean, boolean, net.sf.antcontrib.cpptasks.compiler.LinkType)

addWarningSwitch

protected void addWarningSwitch(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.
Overrides:
addWarningSwitch in interface CommandLineCompiler
See Also:
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.addWarningSwitch(java.util.Vector, int)

getArmCC

public static ADSCCompiler getArmCC()
Singleton for ARM 32-bit C compiler

getArmCpp

public static ADSCCompiler getArmCpp()
Singleton for ARM 32-bit C++ compiler

getDefineSwitch

protected void getDefineSwitch(StringBuffer buffer,
                               String define,
                               String value)
Add command line options for preprocessor macro
Overrides:
getDefineSwitch in interface CommandLineCompiler
See Also:
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler.getDefineSwitch(java.lang.StringBuffer, java.lang.String, java.lang.String)

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()
ARMINC environment variable contains the default include path
Overrides:
getEnvironmentIncludePath in interface CommandLineCompiler

getIncludeDirSwitch

protected String getIncludeDirSwitch(String source)
Returns command line option to specify include directory
Overrides:
getIncludeDirSwitch in interface CommandLineCompiler

getLinker

public Linker getLinker(LinkType type)
Gets the linker that is associated with this processors
Specified by:
getLinker in interface Processor

getMaximumCommandLength

public int getMaximumCommandLength()
Maximum command line length
Overrides:
getMaximumCommandLength in interface CommandLineCompiler

getThumbCC

public static ADSCCompiler getThumbCC()
Singleton for ARM 16-bit C compiler

getThumbCpp

public static ADSCCompiler getThumbCpp()
Singleton for ARM 16-bit C++ compiler

getUndefineSwitch

protected void getUndefineSwitch(StringBuffer buffer,
                                 String define)
Overrides:
getUndefineSwitch in interface CommandLineCompiler

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.