Paste number 150154: sizeof & padding

Index of paste annotations: 1

Paste number 150154: sizeof & padding
Pasted by: remi`bd
When:6 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+37UY
Channel:None
Paste contents:
Raw Source | XML | Display As
(define-module (test-sizes)
  #:use-module (system foreign))

(define %foo
  (list '*
	unsigned-int))

(define (main _)
  (simple-format #t "sizeof(foo) = ~a\talignof(foo) = ~a\n"
		 (sizeof %foo) (alignof %foo)))

Annotations for this paste:

Annotation number 1: Output
Pasted by: remi`bd
When:6 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+37UY/1
Paste contents:
Raw Source | Display As
> (main #f)
sizeof(foo) = 12	alignof(foo) = 8

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.