mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 22:29:45 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			228 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			228 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| {$ifdef Delphi}
 | |
| const DefaultConfig : array[0..24] of string[240]=(
 | |
| {$else Delphi}
 | |
| const DefaultConfig : array[0..24,1..240] of char=(
 | |
| {$endif Delphi}
 | |
|   '#'#010+
 | |
|   '# Config file generated by fpcmkcfg on %BUILDDATE% - %BUILDTIME%'#010+
 | |
|   '# Example fpc.cfg for Free Pascal Compiler'#010+
 | |
|   '#'#010+
 | |
|   #010+
 | |
|   '# ----------------------'#010+
 | |
|   '# Defines (preprocessor)'#010+
 | |
|   '# ----------------------'#010+
 | |
|   #010+
 | |
|   '#'#010+
 | |
|   '# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE,',' #UNDEF are allowed'+
 | |
|   #010+
 | |
|   '#'#010+
 | |
|   '# -d is the same as #DEFINE'#010+
 | |
|   '# -u is the same as #UNDEF'#010+
 | |
|   '#'#010+
 | |
|   #010+
 | |
|   '#'#010+
 | |
|   '# Some examples (for switches see below, and the -? helppages)'#010+
 | |
|   '#'#010+
 | |
|   '# Try compiling with the -dRELEASE or -dDEBUG on the commandline'#010+
 | |
|   '#'#010+
 | |
|   #010+
 | |
|   '# For a release compile w','ith optimizes and strip debuginfo'#010+
 | |
|   '#IFDEF RELEASE'#010+
 | |
|   '  -OG2p3'#010+
 | |
|   '  -Xs'#010+
 | |
|   '  #WRITE Compiling Release Version'#010+
 | |
|   '#ENDIF'#010+
 | |
|   #010+
 | |
|   '# For a debug version compile with debuginfo and all codegeneration ch'+
 | |
|   'ecks on'#010+
 | |
|   '#IFDEF DEBUG'#010+
 | |
|   '  -g'#010+
 | |
|   '  -Crtoi'#010+
 | |
|   '  #WRITE Compiling Debug Ver','sion'#010+
 | |
|   '#ENDIF'#010+
 | |
|   #010+
 | |
|   '# ----------------'#010+
 | |
|   '# Parsing switches'#010+
 | |
|   '# ----------------'#010+
 | |
|   #010+
 | |
|   '# Pascal language mode'#010+
 | |
|   '#      -Mfpc      free pascal dialect (default)'#010+
 | |
|   '#      -Mobjfpc   switch some Delphi 2 extensions on'#010+
 | |
|   '#      -Mdelphi   tries to be Delphi compatib','le'#010+
 | |
|   '#      -Mtp       tries to be TP/BP 7.0 compatible'#010+
 | |
|   '#      -Mgpc      tries to be gpc compatible'#010+
 | |
|   '#      -Mmacpas   tries to be compatible to the macintosh pascal diale'+
 | |
|   'cts'#010+
 | |
|   '#'#010+
 | |
|   '# Turn on Object Pascal extensions by default'#010+
 | |
|   '#-Mobjfpc'#010+
 | |
|   #010+
 | |
|   '# Assemb','ler reader mode'#010+
 | |
|   '#      -Rdefault  use default assembler'#010+
 | |
|   '#      -Ratt      read AT&T style assembler'#010+
 | |
|   '#      -Rintel    read Intel style assembler'#010+
 | |
|   '#'#010+
 | |
|   '# All assembler blocks are AT&T styled by default'#010+
 | |
|   '#-Ratt'#010+
 | |
|   #010+
 | |
|   '# Semantic checking'#010+
 | |
|   '#      -S2     ','   same as -Mobjfpc'#010+
 | |
|   '#      -Sc        supports operators like C (*=,+=,/= and -=)'#010+
 | |
|   '#      -Sa        include assertion code.'#010+
 | |
|   '#      -Sd        same as -Mdelphi'#010+
 | |
|   '#      -Se<x>     compiler stops after the <x> errors (default is 1)'#010+
 | |
|   '#      -Sg  ','      allow LABEL and GOTO'#010+
 | |
|   '#      -Sh        Use ansistrings'#010+
 | |
|   '#      -Si        support C++ styled INLINE'#010+
 | |
|   '#      -SI<x>     set interface style to <x>'#010+
 | |
|   '#         -SIcomCOM compatible interface (default)'#010+
 | |
|   '#         -SIcorbaCORBA compatible inte','rface'#010+
 | |
|   '#      -Sm        support macros like C (global)'#010+
 | |
|   '#      -So        same as -Mtp'#010+
 | |
|   '#      -Sp        same as -Mgpc'#010+
 | |
|   '#      -Ss        constructor name must be init (destructor must be do'+
 | |
|   'ne)'#010+
 | |
|   '#      -St        allow static keyword in object','s'#010+
 | |
|   '#'#010+
 | |
|   '# Allow goto, inline, C-operators, C-vars'#010+
 | |
|   '-Sgic'#010+
 | |
|   #010+
 | |
|   '# ---------------'#010+
 | |
|   '# Code generation'#010+
 | |
|   '# ---------------'#010+
 | |
|   #010+
 | |
|   '# Uncomment the next line if you always want static/dynamic units by d'+
 | |
|   'efault'#010+
 | |
|   '# (can be overruled with -CD, -CS at the commandline)'#010+
 | |
|   '#','-CS'#010+
 | |
|   '#-CD'#010+
 | |
|   #010+
 | |
|   '# Set the default heapsize to 8Mb'#010+
 | |
|   '#-Ch8000000'#010+
 | |
|   #010+
 | |
|   '# Set default codegeneration checks (iocheck, overflow, range, stack)'#010+
 | |
|   '#-Ci'#010+
 | |
|   '#-Co'#010+
 | |
|   '#-Cr'#010+
 | |
|   '#-Ct'#010+
 | |
|   #010+
 | |
|   '# Optimizer switches for i386 compiler'#010+
 | |
|   '# -Og        generate smaller code'#010+
 | |
|   '# -OG        gener','ate faster code (default)'#010+
 | |
|   '# -Or        keep certain variables in registers (still BUGGY!!!)'#010+
 | |
|   '# -Ou        enable uncertain optimizations (see docs)'#010+
 | |
|   '# -O1        level 1 optimizations (quick optimizations)'#010+
 | |
|   '# -O2        level 2 optimizations (','-O1 + slower optimizations)'#010+
 | |
|   '# -O3        level 3 optimizations (same as -O2u)'#010+
 | |
|   '# -Op        target processor'#010+
 | |
|   '#     -Op1  set target processor to 386/486'#010+
 | |
|   '#     -Op2  set target processor to Pentium/PentiumMMX (tm)'#010+
 | |
|   '#     -Op3  set target proce','ssor to PPro/PII/c6x86/K6 (tm)'#010+
 | |
|   #010+
 | |
|   '# Optimize always for Size and PII'#010+
 | |
|   '#-OG2p3'#010+
 | |
|   #010+
 | |
|   #010+
 | |
|   '# -----------------------'#010+
 | |
|   '# Set Filenames and Paths'#010+
 | |
|   '# -----------------------'#010+
 | |
|   #010+
 | |
|   '# Both slashes and backslashes are allowed in paths'#010+
 | |
|   #010+
 | |
|   '# path to the messagefile, not ','necessary anymore but can be used to '+
 | |
|   'override'#010+
 | |
|   '# the default language'#010+
 | |
|   '#-Fr%basepath%/msg/errore.msg'#010+
 | |
|   '#-Fr%basepath%/msg/errorn.msg'#010+
 | |
|   '#-Fr%basepath%/msg/errores.msg'#010+
 | |
|   '#-Fr%basepath%/msg/errord.msg'#010+
 | |
|   '#-Fr%basepath%/msg/errorr.msg'#010+
 | |
|   #010+
 | |
|   '# path to the gccli','b'#010+
 | |
|   '#-Fl%basepath%/lib'#010+
 | |
|   #010+
 | |
|   '# searchpath for includefiles'#010+
 | |
|   '#-Fi/pp/inc;/pp/rtl/inc'#010+
 | |
|   #010+
 | |
|   '# searchpath for units and other system dependent things'#010+
 | |
|   '-Fu$1/units/\$fpctarget'#010+
 | |
|   '-Fu$1/units/\$fpctarget/*'#010+
 | |
|   '-Fu$1/units/\$fpctarget/rtl'#010+
 | |
|   '#-Fu~/fpc/packages/base/*/un','its/$fpctarget;~/fpc/fcll/units/$fpctarg'+
 | |
|   'et;~/fpc/rtl/units/$fpctarget'#010+
 | |
|   #010+
 | |
|   '# searchpath for includefiles'#010+
 | |
|   '# release them only if you know what you do'#010+
 | |
|   '# because this could cause a rebuild of the runtime library'#010+
 | |
|   '# if you tell them compiler/ide to ','build the project (FK)'#010+
 | |
|   '#-Fi%basepath%/source/rtl/inc;%basepath%/source/rtl/i386'#010+
 | |
|   #010+
 | |
|   '# searchpath for objectfiles'#010+
 | |
|   '#-Fo%basepath%/source/rtl/inc;%basepath%/source/rtl/i386'#010+
 | |
|   #010+
 | |
|   '# searchpath for units and other system dependent things'#010+
 | |
|   '-Fu%basepath%/u','nits/$FPCTARGET/'#010+
 | |
|   '-Fu%basepath%/units/$FPCTARGET/*'#010+
 | |
|   '-Fu%basepath%/units/$FPCTARGET/rtl'#010+
 | |
|   #010+
 | |
|   '# searchpath for libraries'#010+
 | |
|   '#-Fl%basepath%/lib'#010+
 | |
|   '#-Fl/lib;/usr/lib'#010+
 | |
|   #010+
 | |
|   '# searchpath for tools'#010+
 | |
|   '-FD%basepath%/bin/$FPCTARGET'#010+
 | |
|   #010+
 | |
|   #010+
 | |
|   '# -------------'#010+
 | |
|   '# Linking'#010+
 | |
|   '# -------','------'#010+
 | |
|   #010+
 | |
|   '# generate always debugging information for GDB (slows down the compil'+
 | |
|   'ing'#010+
 | |
|   '# process)'#010+
 | |
|   '#      -gc        generate checks for pointers'#010+
 | |
|   '#      -gd        use dbx'#010+
 | |
|   '#      -gg        use gsym'#010+
 | |
|   '#      -gh        use heap trace unit (for memo','ry leak debugging)'#010+
 | |
|   '#      -gl        use line info unit to show more info for backtraces'#010+
 | |
|   '#      -gv        generates programs tracable with valgrind'#010+
 | |
|   '#      -gw        generate dwarf debugging info'#010+
 | |
|   '#'#010+
 | |
|   '# Enable debuginfo and use the line info ','unit by default'#010+
 | |
|   '#-gl'#010+
 | |
|   #010+
 | |
|   '# always pass an option to the linker'#010+
 | |
|   '#-k-s'#010+
 | |
|   #010+
 | |
|   '# Always strip debuginfo from the executable'#010+
 | |
|   '-Xs'#010+
 | |
|   #010+
 | |
|   #010+
 | |
|   '# -------------'#010+
 | |
|   '# Miscellaneous'#010+
 | |
|   '# -------------'#010+
 | |
|   #010+
 | |
|   '# Write always a nice FPC logo ;)'#010+
 | |
|   '-l'#010+
 | |
|   #010+
 | |
|   '# Verbosity'#010+
 | |
|   '#      e : Show errors ','(default)       d : Show debug info'#010+
 | |
|   '#      w : Show warnings               u : Show unit info'#010+
 | |
|   '#      n : Show notes                  t : Show tried/used files'#010+
 | |
|   '#      h : Show hints                  m : Show defined macros'#010+
 | |
|   '#      i : Show ge','neral info           p : Show compiled procedures'#010+
 | |
|   '#      l : Show linenumbers            c : Show conditionals'#010+
 | |
|   '#      a : Show everything             0 : Show nothing (except errors'+
 | |
|   ')'#010+
 | |
|   '#      b : Show all procedure          r : Rhide/GCC comp','atibility m'+
 | |
|   'ode'#010+
 | |
|   '#          declarations if an error    x : Executable info (Win32 only'+
 | |
|   ')'#010+
 | |
|   '#          occurs'#010+
 | |
|   '#'#010+
 | |
|   '# Display Info, Warnings, Notes and Hints'#010+
 | |
|   '-viwn'#010+
 | |
|   '# If you don'#039't want so much verbosity use'#010+
 | |
|   '#-vw'#010
 | |
| );
 | 
