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: |
(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: |
> (main #f)
sizeof(foo) = 12 alignof(foo) = 8