Last active
December 11, 2015 01:48
-
-
Save celso/4525824 to your computer and use it in GitHub Desktop.
Strategies to compile stuff on low memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A useful recipe for Raspberry Pi hackers | |
CFLAGS="$CFLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=8192" | |
Change 8192 to, say, 131072 to use more memory. Ie: | |
Also, remove “-pipe” from your CFLAGs. Slows down compile but uses less memory. | |
Also, check the -O option. Sometimes -O2 or -O3 required lots of memory. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment