Ask
your own question, for FREE!
Computer Science
20 Online
So I've already seen how you could optimize for speed, and the most aggressive optimizations involve trading space for time (tables, memoization, loop unwinding, magic numbers, etc.) How do I optimize my programs for space? How do I make my programs take a tiny amount of space in main memory? How do I make them take a tiny amount of storage space (and maybe grow in size in main memory after its executed)?
Still Need Help?
Join the QuestionCove community and study together with friends!
With gcc/g++ the -Os option optimizes for size.
Right; that's automatic optimization for size done by the compiler. What techniques are used by the compiler to acccomplish that? How do I optimizwe my code for size manually?
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Subshilava:
I have an issue my mom bought me a 3d cat mold from tj maxx and everytime I fill
1UPSA:
CAN YALL RATE MY SONG https://www.youtube.com/watch?v=b9QtAeJPeOM&list=RDMMnhCC1y
ShikuniShigana:
Alright so. I need some art ideas, or Drawing design ideas for this Character im doing, He's Kinda like based off Vita Carnis+Shefki Shin+Death Angel(From Q
gelphielvr:
hello :] I have to make a model for my biology class for either topic "evolution"
SnowyBreaks:
Question for the staff here, Could you possibly change my name. I'll dm the name
SsTDOGRednek:
Could someone read my essay and give me some criticism?
Yosad930:
still speed studying for dual enrollment macroeconomics, and a few quick question
gelphielvr:
I have a presentation to do In Front of like 50 people does anyone have any tips
5 hours ago
14 Replies
1 Medal
9 hours ago
3 Replies
0 Medals
12 hours ago
16 Replies
2 Medals
14 hours ago
15 Replies
2 Medals
1 day ago
2 Replies
0 Medals
9 hours ago
39 Replies
4 Medals
1 day ago
5 Replies
1 Medal
1 day ago
6 Replies
1 Medal