Cyclone: Experience With Safe Manual Memory-Management

The goal of the Cyclone project is to investigate type safety for low- level languages such as C. Our most difficult challenge has been providing programmers control over memory management while retaining type safety. This paper reports on our experience trying to integrate and effectively use two previously proposed, type-safe memory management mechanisms: statically-scoped regions and unique pointers. We found that these typing mechanisms can be combined to build alternative memory-management abstractions, such as reference counted objects and arenas with dynamic life- times, and thus provide a flexible basis. Our experience—porting C programs and building new applications for resource-constrained systems—confirms that experts can use these features to improve memory footprint and sometimes to improve throughput when used instead of, or in combination with, conservative garbage collec- tion.


Cyclone: Experience With Safe Manual Memory-Management - cover page
Category
Other software
Document type
Other
Language
English
Pages
12
File format
PDF
File size
631 KB
Published
19 November, 2023
Updated
19 November, 2023
MD5 checksum
315A54B495BE681FB99839A0199CE5D5

About this manual

The document describes the Cyclone project, a type-safe dialect of C designed to investigate type safety for low-level languages. The authors detail their experience integrating two previously proposed, type-safe memory management mechanisms: statically-scoped regions and unique pointers. They found that combining these mechanisms allows for the construction of alternative memory-management abstractions, such as reference-counted objects and arenas with dynamic lifetimes.

What's inside

  • Introduction
  • Regions in Cyclone
  • LIFO Arenas
  • Unique Pointers
  • Experience with Applications
  • Conclusion

Frequently asked questions

What is the primary goal of the Cyclone project?

The goal is to investigate type safety for low-level languages such as C while providing programmers control over memory management.

How does Cyclone ensure that programs are type safe?

Cyclone uses a combination of programmer-supplied annotations, an advanced type system, a flow analysis, and run-time checks.

What happens to a LIFO arena when its declaring lexical scope concludes?

The handle and the contents of the arena are deallocated.

Download PDF (631 KB)

Also Manuals