Re: array limits on arm ampere
C Habs <[email protected]> Thu, 25 Jan 2024 12:32:04 +0000
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <CANe8y8a2vrOfJ4RY0cQwsCSjiCzKJjBejgJYLwktBYYb5J=aBQ@mail.gmail.com> |
I get the same issue on a laptop (hp probook). it seems that 4194303 is the max. I found possible using the OP code. Habs On Wed, 24 Jan 2024 at 23:32, Don Cohen < [email protected]> wrote: > > I've recently started using oracle cloud and I > notice that I can't allocate an array of >= 4M characters. > > On intel with > *features* > (:REGEXP :WILDCARD :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP :CLISP > :ANSI-CL > :COMMON-LISP :LISP=CL :INTERPRETER :LOGICAL-PATHNAMES :MT :SOCKETS > :GENERIC-STREAMS :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER :WORD-SIZE=64 > :PC386 :UNIX) > (length (make-array (* 1024 1024 4) > :element-type 'character > :fill-pointer t :adjustable t)) > => 4194304 > > but on ampere with > *features* > (:READLINE :REGEXP :WILDCARD :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP > :CLISP > :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :LOGICAL-PATHNAMES :SOCKETS > :GENERIC-STREAMS :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER > :WORD-SIZE=64 :UNIX) > *** - string too long: desired length 4194304 exceeds the supported > maximum length > > Both say > array-dimension-limit > 4294967296 > (interestingly, one MORE than impnotes says should be the value > for a 64 bit cpu) > > > _______________________________________________ > clisp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/clisp-list > _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list