1 / 6

Cyclone

Cyclone. A Very Short Introduction Dan Grossman Cornell University Computer Science. Cyclone in One Slide. A safe, convenient, and modern language/compiler at the C level of abstraction Safe: Memory safety, abstract types, no core dumps

avital
Download Presentation

Cyclone

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cyclone A Very Short Introduction Dan Grossman Cornell University Computer Science Cyclone – Very Short Introduction, June 2001

  2. Cyclone in One Slide A safe, convenient, and modern language/compiler at the C level of abstraction • Safe: Memory safety, abstract types, no core dumps • C-level: User-controlled data representation, easy inter-operability, resource-management control • Convenient: “looks like C, acts like C”, but may need more type annotations • Modern: discriminated unions, pattern-matching, exceptions, polymorphism, advanced type system, … Cyclone – Very Short Introduction, June 2001

  3. Why Bother? • Safety-critical systems that must control data representation • e.g. low-level plug-ins • Performance tuning without throwing away the prototype • Exploit massive infrastructure and knowledge-base of C Cyclone – Very Short Introduction, June 2001

  4. `a swap(`a @{2}`r x) { `a t = x[0]; x[0] = x[1]; x[1] = t; return x[0]; } void * swap(void **x) { void * t = x[0]; x[0] = x[1]; x[1] = t; return x[0]; } Silly Example • Compiler needs info to check safety of body and call sites • Call sites do not change ! Cyclone – Very Short Introduction, June 2001

  5. Status • Bootstrapped compiler (approx. 1 minute) • Libraries • Documentation (more in progress) • Easy to install and build (gcc, gnumake, a couple environment variables) • URL announcement soon, meanwhile mail us: • Greg Morrisett (jgm@cs.cornell.edu) • Trevor Jim (trevor@research.att.com) • Dan Grossman (danieljg@cs.cornell.edu) Cyclone – Very Short Introduction, June 2001

  6. Yeah, We Do That… (With Caveats) pointer arithmetic, unions, varargs, nested structs, address of stack variables, function pointers, polymorphism, casts to supertypes, declaration w/o initialization, type inference, array-bounds checks, extensible datatypes, namespace control, link-compatibility checking, … What do you want to see? (We’ll write code) Cyclone – Very Short Introduction, June 2001

More Related