Addresses/alloc.c File Reference

Task to allocate fixed number of elements.Example to simply time the allocation of a fixed number of elements whose size is determined by the user. More...

#include <stdlib.h>

Functions

void prepareInput ()
 No preprocessing needed.
void execute ()
 Execute by invoking malloc(numElements) a total of numT times.
void postInputProcessing ()
 No postprocessing needed.
void problemUsage ()
 No specific problem usage.

Variables

int numT = 1048576
 Number of instances that were allocated.
void * addr [1048576]
 The table of allocated memory.
int numElements
 In this context, this becomes the SIZE of the allocated space, as directed by the -n command line argument.


Detailed Description

Task to allocate fixed number of elements.Example to simply time the allocation of a fixed number of elements whose size is determined by the user.

Author:
George Heineman
Date:
6/15/08

Function Documentation

void execute (  ) 

Execute by invoking malloc(numElements) a total of numT times.

void postInputProcessing (  ) 

No postprocessing needed.

void prepareInput (  ) 

No preprocessing needed.

void problemUsage (  ) 

No specific problem usage.


Variable Documentation

void* addr[1048576]

The table of allocated memory.

int numElements

In this context, this becomes the SIZE of the allocated space, as directed by the -n command line argument.

Note: This behavior is unusual. You have been warned.

int numT = 1048576

Number of instances that were allocated.

Algorithm Development Kit 1.0