如何在linux平台下找到c++程序的堆内存大小?在使用new或malloc之前以及在使用that.can之后,有人帮助我需要堆内存空间吗?
#include <malloc.h>
#include <iostream>
int main()
{
//here need heap memory space
unsigned char* I2C_Read_Data= new unsigned char[250];
//get heap memory space After the usage of new
return 0;
我有一个从源代码构建llvm/clang3.42的脚本(用configure+make)。在ubuntu14.04.5LTS上运行平稳。当我升级到ubuntu17.04时,构建失败了。
这是建筑脚本:
svn co https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_342/final llvm
svn co https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_342/final llvm/tools/clang
svn co https://llvm.org/svn/llvm-project