Debugging C/C++ Memory Issues on macOS

所在平台: Udemy

课程主页: https://www.udemy.com/course/cpp_heapissues_macos/

课程评论:没有评论

第一个写评论        关注课程

课程简介

Coursera 上的这门课程“macOS 上的 C/C++ 内存问题调试”旨在帮助开发者应对 C++ 语言中动态内存管理带来的挑战。 **课程概述:** C++ 是一门强大而复杂的语言,它赋予了程序员完全的内存管理自由,使其能够在运行时分配和操作内存,因此在游戏、电信、金融、航空航天等高性能应用领域备受青睐。然而,这种自由也要求程序员在动态内存使用时倍加小心,例如正确释放已分配的内存、避免越界访问,否则可能导致悬空指针、内存损坏、内存泄漏等问题。 本课程将教授如何利用 macOS 平台提供的丰富工具和 C/C++ 运行时堆库函数来解决这些问题,从而检测内存泄漏、溢出等。 **学习重点:** * **堆内存管理基础:** 深入理解 C 和 C++ 的内存分配函数/运算符,并学习如何有效使用它们来避免内存问题。 * **Xcode Malloc 调试库:** 学习如何使用 Xcode 提供的 Malloc 调试库函数,并将其集成到你的代码中。 * **保护性内存分配器:** 使用保护性内存分配器来有效检测堆损坏。 * **Xcode Instruments 和 leaks 命令:** 掌握 Xcode Instruments 和 leaks 命令等工具,以检测和定位内存泄漏。 **课程目标:** 完成本课程后,学员将对动态内存管理有深入的理解,并能够熟练使用标准工具来检测和隔离内存问题。 **请注意:** 本课程**仅适用于 macOS 平台**。

课程评论(0条)

课程详情

C++ is a large and complex language, but it gives programmers complete freedom when it comes to management of dynamic memory. This allows the programmers to allocate memory and manipulate it at runtime. That is why C++ is still a favorite language for high performance applications in various domains such as gaming, telecom, finance, aerospace, etc.However, it requires programmers to take great care while using dynamic memory, such as releasing acquired memory, taking care not to overstep memory boundary, etc. Otherwise, it could lead to problems such as dangling pointers, memory corruption, memory leaks, etc. This course will help you overcome all these problem by leveraging the tools provided on macOS platform. It has a rich set of functions provided by the C/C++ runtime heap library. These functions can help detect memory leaks, overflows, etc. You'll learn how to use these functions effectively and make your programs bug-free.In this course, you'll start with the basics of heap memory management and understand C & C++ allocation functions/operators in depth. You'll also learn how to effectively use them to avoid memory problems. Afterwards, you'll learn about the Xcode Malloc Debugging library functions and understand how to use them in your code. You'll also use the guarded memory allocator to effectively detect heap corruptions. You'll also gain knowledge of Xcode instruments, leaks command & more that can help you detect leaks.By the end of this course, you'll have a deep understanding of dynamic memory management. You'll be able to use standard tools effectively to detect & isolate memory problems. Note: This course is ONLY for macOS platform

课程标签

0人关注该课程

主题相关的课程