* unified settings for CPU "size"

git-svn-id: trunk@46757 -
This commit is contained in:
florian 2020-09-03 21:02:27 +00:00
parent 24ea912ff5
commit 03778f9b7f
39 changed files with 47 additions and 49 deletions

View File

@ -24,7 +24,7 @@ program tcalcla1;
{$mode objfpc}
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -28,7 +28,7 @@ program tcalcst1;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalcst2;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalcst3;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalcst4;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -29,7 +29,7 @@ program tcalcst5;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -34,7 +34,7 @@ program tcalcst6;
{$define safecall_is_cdecl}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalcst7;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalcst8;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -33,7 +33,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -31,7 +31,7 @@
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }

View File

@ -20,7 +20,7 @@
program tcalobj1;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -20,7 +20,7 @@
program tcalobj2;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -20,7 +20,7 @@
program tcalobj3;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -22,7 +22,7 @@
program tcalobj4;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -20,7 +20,7 @@
program tcalobj6;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -20,7 +20,7 @@
program tcalobj7;
{$R+}
{$i tcaldefs.inc}
{$i cpudefs.inc}
const
{ should be defined depending on CPU target }

View File

@ -30,7 +30,7 @@ program tcalval1;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalval2;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalval3;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalval4;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -32,7 +32,7 @@ program tcalval5;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalval7;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalval8;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalvar1;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalvar2;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -28,7 +28,7 @@ program tcalvar3;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalvar4;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -32,7 +32,7 @@ program tcalvar5;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -36,7 +36,7 @@ program tcalvar6;
{$define safecall_is_cdecl}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalvar7;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -30,7 +30,7 @@ program tcalvar8;
{$define tp}
{$endif}
{$i tcaldefs.inc}
{$i cpudefs.inc}
{ REAL should map to single or double }
{ so it is not checked, since single }

View File

@ -25,17 +25,13 @@ const
{ Should be equal to the maximum offset possible in indirect addressing
mode with displacement. (CPU SPECIFIC) }
{$ifdef cpu68k}
{$define use_small}
{$endif}
{$ifdef cpui8086}
{$define use_small}
{$endif}
{$ifdef use_small}
{$i cpudefs.inc }
{$ifdef cpusmall}
MAX_DISP = 32767;
{$else}
{$else cpusmall}
MAX_DISP = 65535;
{$endif}
{$endif cpusmall}
{ These different alignments are described in the PowerPC ABI
supplement, they should represent most possible cases.

View File

@ -39,19 +39,21 @@ const
min_small_array = 0;
max_small_array = 255;
{$IFDEF CPU16}
{$i cpudefs.inc}
{$ifdef cpusmall}
min_big_neg_array = -770;
max_big_neg_array = 770;
min_big_array = 0;
max_big_array = 770;
{$ELSE CPU16}
{$else cpusmall}
min_big_neg_array = -77000;
max_big_neg_array = 77000;
min_big_array = 0;
max_big_array = 77000;
{$ENDIF CPU16}
{$endif cpusmall}
min_big_odd_array = 0;
max_big_odd_array = 255;