How to set dynamic-space-size when dumping image?

Josef Wolf <[email protected]> Tue, 4 Feb 2025 01:23:43 +0100
Newsgroups gmane.lisp.steel-bank.general
Message-ID <[email protected]>
  $ cat t.lisp
  (defun main ()
    (format t "~a~%" (sb-ext:dynamic-space-size)))
  $ sbcl --noinform --dynamic-space-size 3Gb --end-runtime-options --load t.lisp --eval "(sb-ext:save-lisp-and-die #p\"t\" :toplevel #'main :executable t)"
  $ ./t
  1073741824
  $ sbcl --noinform --dynamic-space-size 3Gb --end-runtime-options --eval '(format t "~a~%" (sb-ext:dynamic-space-size))' --eval '(quit)'
  3221225472

What am I doing wrong here?

-- 
Josef Wolf
[email protected]