Browse Source

* Merge r43604 to fix i8086-embedded utils compilation
------------------------------------------------------------------------
r43604 | pierre | 2019-11-28 14:50:55 +0000 (Thu, 28 Nov 2019) | 1 line

Set default stack size for i8086-embedded target: 16384 for far data model, and 2048 for other memory models
------------------------------------------------------------------------
--- Merging r43604 into '.':
U compiler/parser.pas
--- Recording mergeinfo for merge of r43604 into '.':
U .

git-svn-id: branches/fixes_3_2@43667 -

pierre 5 years ago
parent
commit
f2f4a29dbb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      compiler/parser.pas

+ 10 - 0
compiler/parser.pas

@@ -126,6 +126,16 @@ implementation
            system_x86_64_aros:
            system_x86_64_aros:
              include(supported_calling_conventions,pocall_syscall);
              include(supported_calling_conventions,pocall_syscall);
 {$ifdef i8086}
 {$ifdef i8086}
+           system_i8086_embedded:
+             begin
+               if stacksize=0 then
+                 begin
+                   if init_settings.x86memorymodel in x86_far_data_models then
+                     stacksize:=16384
+                   else
+                     stacksize:=2048;
+                 end;
+             end;
            system_i8086_msdos:
            system_i8086_msdos:
              begin
              begin
                if stacksize=0 then
                if stacksize=0 then