From: C H. <bum...@gm...> - 2024-01-25 12:32:27
|
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 < don...@is...> 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 > cli...@li... > https://lists.sourceforge.net/lists/listinfo/clisp-list > |