Free Pascal Programmer’s Guide Programmer’s Guide for Free Pascal, Version 2.6.
Free Pascal Programmer’s Guide Programmer’s Guide for Free Pascal, Version 2.6.2 Document version 2.6 February 2013 Michaël Van Canneyt Contents 1 Compiler directives 13 1.1 Local directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.1.1 $A or $ALIGN : Align Data . . . . . . . . . . . . . . . . . . . . . . . . . . 13 1.1.2 $A1, $A2,$A4 and $A8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.1.3 $ASMMODE : Assembler mode (Intel 80x86 only) . . . . . . . . . . . . . . . 14 1.1.4 $B or $BOOLEVAL : Complete boolean evaluation . . . . . . . . . . . . . . 15 1.1.5 $C or $ASSERTIONS : Assertion support . . . . . . . . . . . . . . . . . . . 15 1.1.6 $BITPACKING : Enable bitsize packing . . . . . . . . . . . . . . . . . . . 15 1.1.7 $CALLING : Specify calling convention . . . . . . . . . . . . . . . . . . . . 16 1.1.8 $CHECKPOINTER : Check pointer values . . . . . . . . . . . . . . . . . . . 16 1.1.9 $CODEALIGN : Set the code alignment . . . . . . . . . . . . . . . . . . . . 16 1.1.10 $COPERATORS : Allow C like operators . . . . . . . . . . . . . . . . . . . 17 1.1.11 $DEFINE or $DEFINEC : Define a symbol . . . . . . . . . . . . . . . . . . 18 1.1.12 $ELSE : Switch conditional compilation . . . . . . . . . . . . . . . . . . . 18 1.1.13 $ELSEC : Switch conditional compilation . . . . . . . . . . . . . . . . . . . 18 1.1.14 $ELSEIF or $ELIFC : Switch conditional compilation . . . . . . . . . . . 18 1.1.15 $ENDC : End conditional compilation . . . . . . . . . . . . . . . . . . . . . 19 1.1.16 $ENDIF : End conditional compilation . . . . . . . . . . . . . . . . . . . . 19 1.1.17 $ERROR or $ERRORC : Generate error message . . . . . . . . . . . . . . . 19 1.1.18 $ENDREGION: End of a collapsible region . . . . . . . . . . . . . . . . . . 19 1.1.19 $EXTENDEDSYM: Ignored . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.1.20 $EXTERNALSYM: Ignored . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.1.21 $F : Far or near functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.1.22 $FATAL : Generate fatal error message . . . . . . . . . . . . . . . . . . . . 20 1.1.23 $FPUTYPE : Select coprocessor type . . . . . . . . . . . . . . . . . . . . . 21 1.1.24 $GOTO : Support Goto and Label . . . . . . . . . . . . . . . . . . . . . . 21 1.1.25 $H or $LONGSTRINGS : Use AnsiStrings . . . . . . . . . . . . . . . . . . 21 1.1.26 $HINT : Generate hint message . . . . . . . . . . . . . . . . . . . . . . . . 22 1.1.27 $HINTS : Emit hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 1.1.28 $HPPEMIT: Ignored . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 1 CONTENTS 1.1.29 $IF : Start conditional compilation . . . . . . . . . . . . . . . . . . . . . . 22 1.1.30 $IFC : Start conditional compilation . . . . . . . . . . . . . . . . . . . . . 22 1.1.31 $IFDEF Name : Start conditional compilation . . . . . . . . . . . . . . . . 22 1.1.32 $IFNDEF : Start conditional compilation . . . . . . . . . . . . . . . . . . . 22 1.1.33 $IFOPT : Start conditional compilation . . . . . . . . . . . . . . . . . . . . 22 1.1.34 $IMPLICITEXCEPTIONS : Implicit finalization code generation . . . . . . 23 1.1.35 $INFO : Generate info message . . . . . . . . . . . . . . . . . . . . . . . . 23 1.1.36 $INLINE : Allow inline code. . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.1.37 $INTERFACES : Specify Interface type. . . . . . . . . . . . . . . . . . . . 23 1.1.38 $I or $IOCHECKS : Input/Output checking . . . . . . . . . . . . . . . . . . 24 1.1.39 $IEEEERRORS : Enable IEEE error checking for constants . . . . . . . . . 24 1.1.40 $I or $INCLUDE : Include file . . . . . . . . . . . . . . . . . . . . . . . . 24 1.1.41 $I or $INCLUDE : Include compiler info . . . . . . . . . . . . . . . . . . . 25 1.1.42 $J or $WRITEABLECONST : Allow assignments to typed consts . . . . . . 26 1.1.43 $L or $LINK : Link object file . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.1.44 $LIBEXPORT : Ignored . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.1.45 $LINKFRAMEWORK : Link to a framework . . . . . . . . . . . . . . . . . . 27 1.1.46 $LINKLIB : Link to a library . . . . . . . . . . . . . . . . . . . . . . . . . 27 1.1.47 $M or $TYPEINFO : Generate type info . . . . . . . . . . . . . . . . . . . . 28 1.1.48 $MACRO : Allow use of macros. . . . . . . . . . . . . . . . . . . . . . . . . 28 1.1.49 $MAXFPUREGISTERS : Maximum number of FPU registers for variables . 29 1.1.50 $MESSAGE : Generate info message . . . . . . . . . . . . . . . . . . . . . . 29 1.1.51 $MINENUMSIZE : Specify minimum enumeration size . . . . . . . . . . . . 29 1.1.52 $MINFPCONSTPREC : Specify floating point constant precision . . . . . . . 29 1.1.53 $MMX : Intel MMX support (Intel 80x86 only) . . . . . . . . . . . uploads/S4/ programming-guide.pdf
Documents similaires










-
32
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Sep 29, 2021
- Catégorie Law / Droit
- Langue French
- Taille du fichier 0.7794MB