FBHC wuining uw Day? Incwease uw stacc size! (ㅅ´ ˘ `)
Difference between en12 and en13, changed 254 character(s)
Hello! Today I'm going to show you how to incwease stacc 📒 size in some various opewating systems ( ^◡^)  ↵
I'm sowwy if my engwish is bad (⁄ ⁄>⁄ω⁄<⁄ ⁄)⁄↵

## u awe using Mac &#x2318; ૮ ˶ᵔ ᵕ ᵔ˶ ა↵

I used mac for my internship for several months and I used to compile C++ using mac. &#x1f33f;↵

Mac iws a bit wetawded bcuzz its weawwy hawd to set up `#include <bits/stdc++.h>`↵

<spoiler summary="Mac">↵
~~~~~↵
g++ -Wl,-stack_size,0x20000000 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵

will incwease the stacc size to 512MB &#x1f499;, (the hexadecimal is in bytes)↵

Hmppfff... It seems like there are no ways to increase more than that. Deploy uwsewf an AWS or GCP micwo VM instance.. (.﹒︣︿﹒︣.)↵

## u awe using Windows ૮₍ ˃ ⤙ ˂ ₎ა↵

<spoiler summary="Windows">↵
~~~~~↵
g++ -Wl,--stack,1073741824 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵

will incwease the stacc size to 1GB &#x1f499;, (the decimal is in bytes)↵



## u awe using any winux wistwibution ฅ՞•ﻌ•՞ฅ ↵

<spoiler summary="Winux">↵
~~~~~↵
ulimit -s 1048576↵
g++ solution.cpp -o solution↵
~~~~~↵
</spoiler>↵

&#x1f427; will incwease the stacc size to 1GB &#x1f499;, (the decimal is in kiwobytes)↵

Uwpu uwpudeitooo~!↵
U can eidd this wunction in uw `~/.bashewc` wike thiws↵

<spoiler summary="bashrc">↵
~~~~~↵
runcpp() {↵
   (ulimit -v 4194304; ulimit -s 4194304; ./$1)↵
}↵
~~~~~↵
</spoiler>↵

and can dooooo:↵
```↵
runcpp B < input.txt > out.txt↵
```

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en13 English hocky 2022-08-26 20:37:23 254
en12 English hocky 2021-09-27 04:52:55 2 Tiny change: 'imit -s 1024576\ng++ s' -> 'imit -s 1048576\ng++ s'
en11 English hocky 2021-09-26 09:34:12 130 Tiny change: 'instance... (。•́︿•̀。)\n\n## u ' -> 'instance.. (.﹒︣︿﹒︣.)\n\n## u '
en10 English hocky 2021-09-26 09:03:03 0 (published)
en9 English hocky 2021-09-26 09:02:49 1 Tiny change: ',0x2000000 sol' -> ',0x20000000 sol' (saved to drafts)
en8 English hocky 2021-09-25 23:55:43 14 Tiny change: 'ck_size,0x1ffffff solution.' -> 'ck_size,0x2000000 solution.'
en7 English hocky 2021-09-25 23:43:47 19
en6 English hocky 2021-09-25 23:27:00 30 Tiny change: ' 1024576\n~~~~~\n<' -> ' 1024576\ng++ solution.cpp -o solution\n~~~~~\n<' (published)
en5 English hocky 2021-09-25 23:26:26 23
en4 English hocky 2021-09-25 23:25:20 113
en3 English hocky 2021-09-25 23:23:04 314
en2 English hocky 2021-09-25 23:20:03 28
en1 English hocky 2021-09-25 23:19:45 1038 Initial revision (saved to drafts)