VS hangs when build Island Linux project

Code:
namespace calcbench;

type

  Matr = array[0..1000-1,0..1000-1] of real;

  Program = class
  public
    const nx = 1000;

    class method Mult1(const a,b: Matr; var c: Matr; n: integer);
    begin

      var i,j,k: integer;
      var cc: real;

      for i:=0 to n-1 do
        for j:=0 to n-1 do
        begin
          cc := 0.0;
          for k:=0 to n-1 do
            cc := cc + a[i,k]*b[k,j];
          c[i,j] := cc;
        end;

    end;

   class method Main(args: array of String): Int32;
   begin

    var i,j: integer;
    var a,b,c: Matr;
    
    for i:=0 to nx-1 do
     for j:=0 to nx-1 do
      begin
        a[i,j] := rtl.Random * 0.1 + 1.0;
        b[i,j] := rtl.Random * 0.1 + 1.0;
      end;
 
      var t := datetime.now.ticks;
      Mult1(a,b,var c,nx);
      writeln((datetime.Now.Ticks - t) div datetime.TicksPerMillisecond);

   end;
    
  end;

end.

Thanks, logged as bugs://76825

While clearly a bug, it’s probably not a great idea to allocate a 4000000 byte array on the stack?

It’s only for test :wink:

bugs://76825 got closed with status fixed.

However, do let me remind you that passing these as regular (non var) parameters is going to be high inefficient.

Logged as bugs://i64630.

bugs://i64630 was closed as fixed.