C++ 20 increase stack size

Правка en1, от wraith_11, 2022-01-06 10:16:42

codeforces uses this command to compile C++ Codes g++ -Wall -Wextra -Wconversion -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++20 <source> . When I am using this command on my Macbook Air M1, it's giving me the error unknown option: --stack=268435456. Can anyone tell me how do I increase the stack size for c++ codes during compilation on a Macbook, I am using gcc-homebrew 11.2.0

My compilation code is g++ -Wconversion -Davik_local -Wl,--stack=268435456 -O2 -std=c++20 Thank You!

Теги g++, compilers, stack memory, c++20

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский wraith_11 2022-01-06 10:16:42 535 Initial revision (published)