-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompiler.inc
56 lines (46 loc) · 1.53 KB
/
compiler.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{$define TDC}
{$define Delphi}
{$ifdef fpc}
{$undef Delphi}
{$endif}
// delphi
{$ifdef Delphi}
{$B-} // enables short-circuit bitwise evaluation.
{.$A+}
{.$DEBUGINFO OFF} // will prevent placing Debug info to your code.
{.$LOCALSYMBOLS OFF} // will prevent placing local symbols to your code.
{.$O+} // optimize code, remove unnecessary variables etc.
{.$STACKFRAMES OFF}
{.$REFERENCEINFO OFF}
{.$ASSERTIONS OFF}
{.$Q-} // removes code for Integer overflow-checking.
{.$R-} // removes code for range checking of strings, arrays etc.
{.$S-} // removes code for stack-checking.
{.$Y-} // will prevent placing smybol information to your code.
{.$WRITEABLECONST OFF} // Writeable typed constants OFF
{.$IOCHECKS OFF}
{.$REFERENCEINFO OFF}
{.$LOCALSYMBOLS OFF}
{.$TYPEINFO OFF}
{$SAFEDIVIDE OFF} // FDIV bug on old pentiums is repaired already by OS
{$endif}
// freepascal
{$ifdef fpc}
// switch to delphi compatible mode
{$asmmode intel}
{$mode delphi}
{$DEBUGINFO OFF} // will prevent placing Debug info to your code.
{.$LOCALSYMBOLS OFF} // will prevent placing local symbols to your code.
{$ASSERTIONS OFF}
{$Q-} // removes code for Integer overflow-checking.
{$R-} // removes code for range checking of strings, arrays etc.
{$S-} // removes code for stack-checking.
{.$Y-} // will prevent placing smybol information to your code.
{$B-} // enables short-circuit bitwise evaluation. // ??
{$WRITEABLECONST OFF} // Writeable typed constants OFF
{$IOCHECKS OFF}
{.$REFERENCEINFO OFF}
{.$LOCALSYMBOLS OFF}
{$TYPEINFO OFF}
{$M+}
{$endif}