C++ 20 increase stack size

Revision en1, by 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!

Tags g++, compilers, stack memory, c++20

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English wraith_11 2022-01-06 10:16:42 535 Initial revision (published)