This is the main part of the code where i m allocating and deallocating :
In this piece of code :
l_iCount is the no of times i want to allocate and deallocate
l_iSize is the chunk of bytes
both of them are command line arguments .
/* Allocating and Deallocating l_iSize bytes l_iCount times */
for(l_iIndex = 0; l_iIndex < l_iCount ; l_iIndex++)
{
l_pcTemp = (char *)malloc(l_iSize);
if(NULL == l_pcTemp)
{
printf("Memory allocation failed \n");
exit(1);
}
memset(l_pcTemp,0,l_iSize);
free(l_pcTemp);
}
memset to any ASCII works fine when i run the binary of the cross compiled one on the board.
thanks for the reply . waiting for the same ...
bye
sekhar