Jump to content


Photo

Debug New


1 reply to this topic

#1 Jim Cooper

Jim Cooper

    Newbrie

  • Members
  • 1 posts

Posted 05 January 2011 - 12:44 AM

Is it possible to write custom versions of new, delete, malloc, etc. that has code to debug memory allocation and override the versions in the standard libs?

#2 Pavel

Pavel

    Super Maniac

  • Administrators
  • PipPipPipPipPip
  • 1,446 posts
  • Gender:Male
  • Location:Melbourne, Australia

Posted 05 January 2011 - 02:45 AM

Is it possible to write custom versions of new, delete, malloc, etc. that has code to debug memory allocation and override the versions in the standard libs?


Yes it's possible. You'll need to replace the default implementation of alloc and free functions from libc with your own. To get libc sources you need to either get a pro compiler license or buy a Novo RTOS license.

Regards,
Pavel



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users