DCCOSX.EXE, the Delphi Cross Compiler for OS X

From RAD Studio XE2
Jump to: navigation, search

Go Up to Command Line Utilities Index


DCCOSX.EXE is the cross-compiler version of DCC32.EXE, the Delphi (Object Pascal) command line compiler.

Compiler Output

File Extension Description

none

Cross compiled executable file for the Mac

.dcu

Delphi cross compiled unit file

No list file will be delivered

Listing file

.o

Object file (.obj for Windows)

Options Not Supported by DCCOSX.EXE

The DCCOSX.EXE cross-compiler does not support the PE header options (for Windows) that DCC32.EXE supports.

The PE header options (specified in the Project > Options > Delphi Compiler > Linking dialog box) include, among others, the following options:

  • peflags:<flags>
  • peoptflags:<flags
  • peosversion:<major>.<minor>

Anther DCC32 command line option not supported by DCCOSX is:

-K<addr> = Set image base addr

The Delphi compiler now ignores the {$STRINGCHECKS} directive, so the following is no longer in the command line help:

 --string-checks:{on|off}

Command Options

To display the command line help for DCCOSX, enter:

C:\>dccosx

Embarcadero Delphi for Mac OS X compiler version 23.0
Copyright (c) 1983,2011 Embarcadero Technologies, Inc.

Syntax: dccosx [options] filename [options]

  -A<unit>=<alias> = Set unit alias
  -B = Build all units             
  -CC = Console target             
  -CG = GUI target                 
  -D<syms> = Define conditionals   
  -E<path> = executable/library output directory
  -F<offset> = Find error          
  -GD = Detailed map file          
  -GP = Map file with publics      
  -GS = Map file with segments     
  -H = Output hint messages        
  -I<paths> = Include directories  
  -J = Generate .o file            
  -JPHNE = Generate C++ .o file, .hpp file, in namespace, export all
  -JL = Generate package .a .bpi, and all .hpp files for C++
  -LE<path> = package bpl*.so output directory
  -LN<path> = package .dcp output directory
  -LU<package> = Use package       
  -M = Make modified units         
  -N0<path> = unit .dcu/.dpu output directory
  -NH<path> = unit .hpp output directory
  -NO<path> = unit .o/.pic.o output directory
  -NB<path> = unit .bpi output directory
  -NS<namespaces> = Namespace search path
  -O<paths> = Object directories   
  -P = Generate PIC code (.dpu)    
  -Q = Quiet compile               
  -R<paths> = Resource directories 
  -U<paths> = Unit directories     
  -V = Debug information in EXE    
  -VR = Generate remote debug (RSM)
  -W[+|-|^][warn_id] = Output warning messages
  -Z = Output 'never build' DCPs   
  -$<dir> = Compiler directive     
  --help = Show this help screen   
  --version = Show name and version
  --codepage:<cp> = specify source file encoding
  --default-namespace:<namespace> = set namespace
  --depends = output unit dependency information
  --doc = output XML documentation 
  --drc = output resource string .drc file
  --no-config = do not load default dccosx.cfg file
  --description:<string> = set executable description
  --inline:{on|off|auto} = function inlining control
Compiler switches: -$<letter><state> (defaults are shown below)
  A8  Aligned record fields         
  B-  Full boolean Evaluation       
  C+  Evaluate assertions at runtime
  D+  Debug information             
  G+  Use imported data references  
  H+  Use long strings by default   
  I+  I/O checking                  
  J-  Writeable structured consts   
  L+  Local debug symbols           
  M-  Runtime type info             
  O+  Optimization                  
  P+  Open string params            
  Q-  Integer overflow checking     
  R-  Range checking                
  T-  Typed @ operator              
  V+  Strict var-strings            
  W-  Generate stack frames         
  X+  Extended syntax               
  Y+  Symbol reference info         
  Z1  Minimum size of enum types    
Resource reserve size: -$M<resourceReserveSize> (default 1048576)

See Also