Run-time type checking of whole programs
and other stories . Stephen Kell
stephen.kell@cl.cam.ac.uk
Computer Laboratory University of Cambridge
- libcrunch. . . – p.1/44
Run-time type checking of whole programs and other stories . - - PowerPoint PPT Presentation
Run-time type checking of whole programs and other stories . Stephen Kell stephen.kell@cl.cam.ac.uk Computer Laboratory University of Cambridge libcrunch . . . p.1/44 Wanted (naive version): check this! if (obj > type == OBJ
stephen.kell@cl.cam.ac.uk
source tree main.c widget.c util.c ... main.i .allocs widget.i .allocs util.i .allocs ...
CIL-based compiler front-end
.c
.f /lib/ libxyz.so .cc
/bin/foo /bin/ .debug/ foo .java /lib/ .debug/ libxyz.so
/bin/ .uniqtyp/ foo.so
__is_a libcrunch .so uniqtypes heap_index
0xdeadbeef, “Widget”? true
__uniqtype__int 4 “int” __uniqtype__double 8 “double” 2 __uniqtype__point 16 3 __uniqtype__ellipse 32 “ellipse” 8 8 16 ...