Руководство пользователя Free Pascal версии Версия документа Март 2010 Michael Van Canneyt, Florian Klampfl icon

Руководство пользователя Free Pascal версии Версия документа Март 2010 Michael Van Canneyt, Florian Klampfl


Смотрите также:
Комплекс «Энергосфера» Программное обеспечение «Сервер опроса» Руководство пользователя Версия...
GARMIN GPSMAP 60 Руководство пользователя...
Руководство пользователя Версия 0 Санкт-Петербург 2010 Фирма зао «Взлет»...
Программный комплекс «Банк-Клиент» imb-link tcp/ip руководство пользователя версия 1...
Руководство пользователя Версия 86060401...
Руководство пользователя программы «OracleAdmin» 37 4 Руководство пользователя программы...
Руководство пользователя Учет посещаемости и успеваемости студентов...
Системной Энциклопедии" Руководство пользователя "...
Инструкция и документация версия 92 данное руководство недостаточно адаптировано с версии 2...
Версия программы or4t31-4 прибор приемно-контрольный охранно-пожарный «орион-4Т 1» руководство...
Руководство пользователя Версия 4...
Руководство пользователя Версия 01...



Загрузка...
страницы: 1   2   3   4   5   6   7   8   9   10
вернуться в начало
скачать
[опции]


Put + after a boolean switch option to enable it, -to disable it


-a The compiler doesn’t delete the generated assembler file


-al List sourcecode lines in assembler file


-an List node info in assembler file


-ap Use pipes instead of creating temporary assembler files


-ar List register allocation/release info in assembler file


-at List temp allocation/release info in assembler file


-A Output format:


-Adefault Use default assembler


-Aas Assemble using GNU AS


-b Generate browser info


-bl Generate local symbol info


-B Build all modules


-C Code generation options:


-Ca Select ABI, see fpc -i for possible values


-Cb Generate big-endian code


-Cc Set default calling convention to


-CD Create also dynamic library (not supported)


-Ce Compilation with emulated floating point opcodes


-Cf Select fpu instruction set to use, see fpc -i for possible values


-CF Minimal floating point constant precision (default, 32, 64)


-Cg Generate PIC code


-Ch bytes heap (between 1023 and 67107840)


-Ci IO-checking


-Cn Omit linking stage


-Co Check overflow of integer operations


-CO Check for possible overflow of integer operations


-Cp Select instruction set, see fpc -i for possible values


-CP= packing settings


-CPPACKSET= set allocation: 0, 1 or DEFAULT or NORMAL, 2, 4 and 8


-Cr Range checking


-CR Verify object method call validity


-Cs Set stack checking size to


-Ct Stack checking (for testing only, see manual)


-CX Create also smartlinked library


-d Defines the symbol


-D Generate a DEF file


-Dd Set description to


-Dv Set DLL version to


-e Set path to executable


-E Same as -Cn


-fPIC Same as -Cg


-F Set file names and paths:


-Fa[,y] (for a program) load units and [y] before uses is parsed


-Fc Set input codepage to


-FC Set RC compiler binary name to


-Fd Disable the compiler’s internal directory cache


-FD Set the directory where to search for compiler utilities


-Fe Redirect error output to


-Ff Add to framework path (Darwin only)


-FE Set exe/unit output path to


-Fi Add to include path


-Fl Add to library path


-FL Use as dynamic linker


-Fm Load unicode conversion table from .txt in the compiler dir


-Fo Add to object path


-Fr Load error message file


-FR Set resource (.res) linker to


-Fu Add to unit path


-FU Set unit output path to , overrides


-FE -FW Store generated whole-program optimization feedback in


-Fw Load previously stored whole-program optimization feedback from


-g Generate debug information (default format for target)


-gc Generate checks for pointers -gh Use heaptrace unit (for memory leak/corruption debugging)


-gl Use line info unit (show more info with backtraces)


-go Set debug information options


-godwarfsets Enable DWARF set debug information (breaks gdb < 6.5)


-gostabsabsincludes Store absolute/full include file paths in Stabs


-gp Preserve case in stabs symbol names


-gs Generate Stabs debug information


-gt Trash local variables (to detect uninitialized uses)


-gv Generates programs traceable with Valgrind


-gw Generate DWARFv2 debug information (same as -gw2)


-gw2 Generate DWARFv2 debug information


-gw3 Generate DWARFv3 debug information


-i Information


-iD Return compiler date


-iV Return short compiler version


-iW Return full compiler version


-iSO Return compiler OS


-iSP Return compiler host processor


-iTO Return target OS


-iTP Return target processor


-I Add to include path


-k Pass to the linker


-l Write logo


-M Set language mode to


-Mfpc Free Pascal dialect (default)


-Mobjfpc FPC mode with Object Pascal support


-Mdelphi Delphi 7 compatibility mode


-Mtp TP/BP 7.0 compatibility mode


-Mmacpas Macintosh Pascal dialects compatibility mode


-n Do not read the default config files


-N Node tree optimizations


-Nu Unroll loops


-o Change the name of the executable produced to


-O Optimizations:


-O-Disable optimizations


-O1 Level 1 optimizations (quick and debugger friendly)


-O2 Level 2 optimizations (-O1 + quick optimizations)


-O3 Level 3 optimizations (-O2 + slow optimizations)


-Oa= Set alignment


-Oo[NO] Enable or disable optimizations, see fpc -i for possible values


-Op Set target cpu for optimizing, see fpc -i for possible values


-OW Generate whole-program optimization feedback for optimization , see


-Ow Perform whole-program optimization , see fpc -i for possible values


-Os Optimize for size rather than speed


-pg Generate profile code for gprof (defines FPC_PROFILE)


-R Assembler reading style:


-Rdefault Use default assembler for target


-S Syntax options:


-S2 Same as -Mobjfpc


-Sc Support operators like C (*=,+=,/= and -=)


-Sa Turn on assertions


-Sd Same as -Mdelphi


-Se Error options. is a combination of the following:


: Compiler halts after the errors (default is 1)


w : Compiler also halts after warnings


n : Compiler also halts after notes


h : Compiler also halts after hints


-Sg Enable LABEL and GOTO (default in -Mtp and -Mdelphi)


-Sh Use ansistrings by default instead of shortstrings


-Si Turn on inlining of procedures/functions declared as "inline"


-Sk Load fpcylix unit -SI Set interface style to


-SIcom COM compatible interface (default)


-SIcorba CORBA compatible interface


-Sm Support macros like C (global)


-So Same as -Mtp


-Ss Constructor name must be init (destructor must be done)


-St Allow static keyword in objects


-Sx Enable exception keywords (default in Delphi/ObjFPC modes) -s Do not call assembler and linker


-sh Generate script to link on host


-st Generate script to link on target


-sr Skip register allocation phase (use with -alr)


-T Target operating system: -Tlinux Linux


-u Undefines the symbol


-U Unit options:


-Un Do not check where the unit name matches the file name


-Ur Generate release unit files (never automatically recompiled)


-Us Compile a system unit


-v Be verbose. is a combination of the following letters:


e : Show errors (default)

0 : Show nothing (except errors)

w : Show warnings

u : Show unit info

n : Show notes

t : Show tried/used files

h : Show hints

c : Show conditionals

i : Show general info

d : Show debug info

l : Show linenumbers

r : Rhide/GCC compatibility mode

s : Show time stamps

q : Show message numbers

a : Show everything

x : Executable info (Win32 only)

b : Write file names messages

p : Write tree.log with parse tree with full path

v : Write fpcdebug.txt with lots of debugging info


m, : Don’t show messages numbered and


-X Executable options:


-Xc Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Linux)


-Xd Do not use standard library search path (needed for cross compile)


-Xe Use external linker


-Xg Create debuginfo in a separate file and add a debuglink section to executable


-XD Try to link units dynamically (defines FPC_LINK_DYNAMIC)


-Xi Use internal linker


-Xm Generate link map


-XM Set the name of the ’main’ program routine (default is ’main’)


-XP Prepend the binutils names with the prefix


-Xr Set the linker’s rlink-path to (needed for cross compile, see the


-XR Prepend to all linker search paths (BeOS, Darwin, FreeBSD, Linux,


-Xs Strip all symbols from executable


-XS Try to link units statically (default, defines FPC_LINK_STATIC)


-Xt Link with static libraries (-static is passed to linker)


-XX Try to smartlink units (defines FPC_LINK_SMART)


-? Show this help


-h Shows this help without waiting


Appendix B


Alphabetical list of reserved words


absolute


abstract


and


array


as


asm


assembler


begin


break


case


cdecl


class


const


constructor


continue


cppclass


deprecated


destructor


div


do


downto


else


end


except


exit


export


exports


external


experimental


fail


false


far


file


finally


for


forward


function


goto


if


implementation


in


index


inherited


initialization


inline


interface


interrupt


is


label


library


mod


name


near


nil


not


object


of


on


operator


or


otherwise


packed


popstack


private


procedure


program


property


protected


public


raise


record


reintroduce


repeat


self


set


shl


shr


stdcall


string


then


to


true


try


type


unimplemented


unit


until


uses


var


virtual


while


with


xor


Appendix C


Compiler messages


This appendix is meant to list all the compiler messages. The list of messages is generated from he compiler source itself, and should be fairly complete. At this point, only assembler errors are not in the list.


For an explanation of how to control the messages, section 5.1.2, page 25.


C.1 General compiler messages


This section gives the compiler messages which are not fatal, but which display useful information. The number of such messages can be controlled with the various verbosity level -v switches.


Compiler: arg1 When the -vt switch is used, this line tells you what compiler is used.


Compiler OS: arg1 When the -vd switch is used, this line tells you what the source operating system is.


Info: Target OS: arg1 When the -vd switch is used, this line tells you what the target operating system is.


Using executable path: arg1 When the -vt switch is used, this line tells you where the compiler looks for its binaries.


Using unit path: arg1 When the -vt switch is used, this line tells you where the compiler looks for compiled units. You can set this path with the -Fu option.


Using include path: arg1 When the -vt switch is used, this line tells you where the compiler looks for its include files (files used in {$I xxx} statements). You can set this path with the -Fi option.


Using library path: arg1 When the -vt switch is used, this line tells you where the compiler looks for the libraries. You can set this path with the -Fl option.


Using object path: arg1 When the -vt switch is used, this line tells you where the compiler looks for object files you link in (files used in {$L xxx} statements). You can set this path with the -Fo option.


Info: arg1 lines compiled, arg2 sec arg3 When the -vi switch is used, the compiler reports the number of lines compiled, and the time it took to compile them (real time, not program time).


Fatal: No memory left The compiler doesn’t have enough memory to compile your program. There are several remedies for this:


• If you’re using the build option of the compiler, try compiling the different units manually.


• If you’re compiling a huge program, split it up into units, and compile these separately.

• If the previous two don’t work, recompile the compiler with a bigger heap. (You can use the -Ch option for this, -Ch (see page 28).)


Info: Writing Resource String Table file: arg1 This message is shown when the compiler writes the Resource String Table file containing all the resource strings for a program.


Error: Writing Resource String Table file: arg1 This message is shown when the compiler encounters an error when writing the Resource String Table file.


Info: Fatal: Prefix for Fatal Errors.


Info: Error: Prefix for Errors.


Info: Warning: Prefix for Warnings.


Info: Note: Prefix for Notes.


Info: Hint: Prefix for Hints.


Error: Path "arg1" does not exist The specified path does not exist.


Fatal: Compilation aborted Compilation was aborted.


bytes code The size of the generated executable code, in bytes.


bytes data The size of the generated program data, in bytes.


Info: arg1 warning(s) issued Total number of warnings issued during compilation.


Info: arg1 hint(s) issued Total number of hints issued during compilation.


Info: arg1 note(s) issued Total number of notes issued during compilation.


C.2 Scanner messages.


This section lists the messages that the scanner emits. The scanner takes care of the lexical structure of the pascal file, i.e. it tries to find reserved words, strings, etc. It also takes care of directives and conditional compilation handling.


Fatal: Unexpected end of file This typically happens in one of the following cases:


• The source file ends before the final end. statement. This happens mostly when the begin and end statements aren’t balanced;


• An include file ends in the middle of a statement.


• A comment was not closed.


Fatal: String exceeds line There is a missing closing ’ in a string, so it occupies multiple lines.


Fatal: illegal character "arg1" (arg2) An illegal character was encountered in the input file.


Fatal: Syntax error, "arg1" expected but "arg2" found This indicates that the compiler expected a different token than the one you typed. It can occur almost anywhere it is possible to make an error against the Pascal language.


Start reading includefile arg1 When you provide the -vt switch, the compiler tells you when it starts reading an included file.


Warning: Comment level arg1 found When the -vw switch is used, then the compiler warns you if it finds nested comments. Nested comments are not allowed in Turbo Pascal and Delphi, and can be a possible source of errors.


Note: Ignored compiler switch "arg1" With -vn on, the compiler warns if it ignores a switch.


Warning: Illegal compiler switch "arg1" You included a compiler switch (i.e. {$... }) which the compiler does not recognise.


Warning: Misplaced global compiler switch The compiler switch is misplaced, and should be located at the start of the unit or program.


Error: Illegal char constant This happens when you specify a character with its ASCII code, as in #96, but the number is either illegal, or out of range.


Fatal: Can’t open file "arg1" Free Pascal cannot find the program or unit source file you specified on the command line.


Fatal: Can’t open include file "arg1" Free Pascal cannot find the source file you specified in a {$include ..} statement.


Error: Illegal record alignment specifier "arg1" You are specifying {$PACKRECORDS n} or {$ALIGN n} with an illegal value for n. For $PACKRECORDS valid alignments are 1, 2, 4, 8, 16, 32, C, NORMAL, DEFAULT, and for $ALIGN valid alignments are 1, 2, 4, 8, 16, 32, ON, OFF. Under mode MacPas $ALIGN also supports MAC68K, POWER and RESET.


Error: Illegal enum minimum-size specifier "arg1" You are specifying the {$PACKENUM n} with an illegal value for n. Only 1,2,4, NORMAL or DEFAULT is valid here.


Error: $ENDIF expected for arg1 arg2 defined in arg3 line arg4 Your conditional compilation statements are unbalanced.


Error: Syntax error while parsing a conditional compiling expression There is an error in the expression following the {$if ..}, {$ifc } or {$setc } compiler directives.


Error: Evaluating a conditional compiling expression There is an error in the expression following the {$if ..}, ifcorsetc compiler directives.


Warning: Macro contents are limited to 255 characters in length The contents of macros cannot be longer than 255 characters.


Error: ENDIF without IF(N)DEF Your {$IFDEF ..} and {$ENDIF} statements aren’t balanced.


Fatal: User defined: arg1 A user defined fatal error occurred. See also the Programmer’s Guide.


Error: User defined: arg1 A user defined error occurred. See also the Programmer’s Guide.


Warning: User defined: arg1 A user defined warning occurred. See also the Programmer’s Guide.


Note: User defined: arg1 A user defined note was encountered. See also the Programmer’s Guide.


Hint: User defined: arg1 A user defined hint was encountered. See also the Programmer’s Guide.


Info: User defined: arg1 User defined information was encountered. See also the Programmer’s Guide.


Error: Keyword redefined as macro has no effect You cannot redefine keywords with macros.


Fatal: Macro buffer overflow while reading or expanding a macro Your macro or its result was too long for the compiler.


Warning: Expanding of macros exceeds a depth of 16. When expanding a macro, macros have been nested to a level of 16. The compiler will expand no further, since this may be a sign that recursion is used.


Warning: compiler switches aren’t supported in // styled comments Compiler switches should be in normal Pascal style comments.


Handling switch "arg1" When you set debugging info on (-vd) the compiler tells you when it is evaluating conditional compile statements.


ENDIF arg1 found When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


IFDEF arg1 found, arg2 When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


IFOPT arg1 found, arg2 When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


IF arg1 found, arg2 When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


IFNDEF arg1 found, arg2 When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


ELSE arg1 found, arg2 When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements.


Skipping until... When you turn on conditional messages (-vc), the compiler tells you where it encounters conditional statements, and whether it is skipping or compiling parts.


Info: Press to continue When the -vi switch is used, the compiler stops compilation and waits for the Enter key to be pressed when it encounters a {$STOP} directive.


Warning: Unsupported switch "arg1" When warnings are turned on (-vw), the compiler warns you about unsupported switches. This means that the switch is used in Delphi or Turbo Pascal, but not in Free Pascal.


Warning: Illegal compiler directive "arg1" When warnings are turned on (-vw), the compiler warns you about unrecognised switches. For a list of recognised switches, see the Programmer’s Guide.


Back in arg1 When you use the -vt switch, the compiler tells you when it has finished reading an include file.


Warning: Unsupported application type: "arg1" You get this warning if you specify an unknown application type with the directive {$APPTYPE}.


Warning: APPTYPE is not supported by the target OS The {$APPTYPE} directive is supported by certain operating systems only.


Warning: DESCRIPTION is not supported by the target OS The {$DESCRIPTION} directive is not supported on this target OS.


Note: VERSION is not supported by target OS The {$VERSION} directive is not supported on this target OS.


Note: VERSION only for exes or DLLs The {$VERSION} directive is only used for executable or DLL sources.


Warning: Wrong format for VERSION directive "arg1" The {$VERSION} directive format is majorversion.minorversion where majorversion and minorversion are words.




оставить комментарий
страница4/10
Дата18.09.2011
Размер1,33 Mb.
ТипРуководство пользователя, Образовательные материалы
Добавить документ в свой блог или на сайт

страницы: 1   2   3   4   5   6   7   8   9   10
Ваша оценка этого документа будет первой.
Ваша оценка:
Разместите кнопку на своём сайте или блоге:
rudocs.exdat.com

Загрузка...
База данных защищена авторским правом ©exdat 2000-2017
При копировании материала укажите ссылку
обратиться к администрации
Анализ
Справочники
Сценарии
Рефераты
Курсовые работы
Авторефераты
Программы
Методички
Документы
Понятия

опубликовать
Загрузка...
Документы

наверх