Skip to main content
Home
Diablo

Main navigation

  • Home
  • Download
  • Manual
  • Links
  • FAQ
  • Publications
  • Contact
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Diablo manual
  3. Infrastructure and support API

Memory Management

By admin, 27 April, 2018

To facilitate dynamic memory management, diablo provides an interface which can help in the detection of memory leaks. To use this functionality, a programmer should not use the default functions to allocate and free dynamic memory, but should revert to the diablo variants. Their usage is identical to that of the standard c functions. The only difference is that they start with capital letters.

void * Calloc(size_t nmemb, size_t size);
void * Malloc(size_t size);
void * Realloc(void *ptr, size_t size);
void Free(void *ptr);

Book traversal links for Memory Management

  • Adding Commandline Options
  • Up
  • Input/Output

Book navigation

  • Coding style
  • Installation
  • Input files
  • Invocation
  • Infrastructure and support API
    • Adding Commandline Options
    • Memory Management
    • Input/Output
    • Class Files
    • Dynamic Members
    • The Function Broker
  • High-level overview of Diablo data types
  • How To ...
  • Submitting patches
  • PLDI tutorial slides
  • Miscellaneous slides
RSS feed
Powered by Drupal