Skip to content

Instantly share code, notes, and snippets.

@Lovesan
Created April 1, 2016 15:51
Show Gist options
  • Save Lovesan/e6f2f88cc06abe04f53462cec16e4290 to your computer and use it in GitHub Desktop.
Save Lovesan/e6f2f88cc06abe04f53462cec16e4290 to your computer and use it in GitHub Desktop.
(defconstant +byte-count+ (* 2 1024 1024 1024))
(defconstant +page-size+ 4096)
(defconstant +page-count+ (/ +byte-count+ +page-size+))
(defvar *a* (make-array +byte-count+ :element-type '(unsigned-byte 8)))
(dotimes (i +page-count+) (incf (elt *a* (* i +page-size+))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment