微软的编译器(C++)

#pragma comment(linker, "/STACK:102400000,102400000")  

G++

    int size = 256 << 20; // 256MB
    char *p = (char*)malloc(size) + size;
    __asm__("movl %0, %%esp\n" :: "r"(p));

 

相关文章:

  • 2021-06-29
  • 2021-05-26
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2021-12-27
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-11-25
  • 2021-07-04
相关资源
相似解决方案