Dynamically checking type-correctness of whole programs
(work newly in-progress). Stephen Kell
stephen.kell@cl.cam.ac.uk
Computer Laboratory University of Cambridge
- libcrunch. . . – p.1/22
Dynamically checking type-correctness of whole programs (work newly - - PowerPoint PPT Presentation
Dynamically checking type-correctness of whole programs (work newly in-progress). Stephen Kell stephen.kell@cl.cam.ac.uk Computer Laboratory University of Cambridge libcrunch . . . p.1/22 Wanted (naive version): check this! if (obj
stephen.kell@cl.cam.ac.uk
.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__anon0x123 16 3 __uniqtype__ellipse 32 “ellipse” 8 8 16 ...
source tree main.c widget.c util.c ... main.i .allocs widget.i .allocs util.i .allocs ...
CIL-based compiler front-end