在哪里可以找到mingw中Windows的C malloc/免费实现源代码? [英] Where I can to find C malloc/free source code of implementation for Windows in mingw?

查看:229
本文介绍了在哪里可以找到mingw中Windows的C malloc/免费实现源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要查看源代码以了解Windows应用程序编写时malloc代码内部发生的事情.

I need to look in source code to understand what internally going on in malloc code when windows application is writing.

推荐答案

使用MinGW工具链生成的二进制文件使用旧版Windows C运行时msvcrt.dll.其malloc的实现基本上只是调用 HeapAlloc 分配内存.

Binaries built using the MinGW toolchain make use of the legacy Windows C Runtime, msvcrt.dll. Its implementation of malloc basically just calls HeapAlloc to allocate memory.

据我所知,Win32堆的源代码(HeapAlloc和朋友)没有公开可用.

To the best of my knowledge, source code for the Win32 heap (HeapAlloc and friends) is not publicly available.

这篇关于在哪里可以找到mingw中Windows的C malloc/免费实现源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆