Tomek Kondrat · May 18, 2014 at 03:00 pm

Potentially Speed up Android with New Compiler Flags

Beginning back in 2007, Android has evolved into quite a mature project. You can learn more about its history by checking out these two articles. Back in 2007, devices weren’t anywhere near as powerful as they are now. They were single core, and had only a few megabytes of RAM. Now it’s 2014, and we are on the verge of seeing the first 64-bit Android devices.

Despite the leaps and bounds that have been made in hardware capabilities, the Android build process has not really been much optimized since then. It involves using GCC 4.7 when 4.8 is available, and some outdated flags. And interestingly, compiling a kernel uses a different sets of flags than compiling the rest of the ROM.

XDA Recognized Contributor JustArchi released a commit, which according to developer, should increase the speed of AOSP-derived Android builds to upwards of 6x current speed. The commit enables a set of flags that are thoughtfully described in the original thread. But before you get too excited and cherry-pick this commit for your own builds, keep in mind that further testing in a wide variety of test scenarios needs to take place before these claims can be validated. Furthermore, you may also find that these flags will result in unexpected issues, as Android has been defaulting to a certain set of flags for quite some time.

You can find the commit and description in the original thread. Have you tried changing these or other flags while compiling? If you end up trying this in your builds, we’re eager to hear your experiences.

 


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

Tomek Kondrat

eagleeyetom is an editor on XDA-Developers, the largest community for Android users. Tomek is the only Polish moderator on XDA Developers. He graduated from the University of Warmia and Mazury in Olsztyn with a degree in journalism and public communication in 2013. He's a big fan of football (not hand egg), post rock and cooking. A total addict of mobile technology, especially Android. Currently flashes dozens of custom ROMs on his OPO.
Mario Tomás Serrafero · Mar 27, 2015 at 04:13 pm · 2 comments

Should You Get Wear? Wearer’s Practical Observations

Wear is said to not offer enough for mass adoption, even though its been in the market for over 9 months. I personally have a Gear Live which I purchased 8 months ago, and my experience with it has had its ups and downs throughout my time with it. For the longest time, I was not able to recommend the platform to anyone. Since then, a lot of updates have hit Wear watches, some improving battery life, others changing the...

XDA NEWS
GermainZ · Mar 27, 2015 at 01:15 pm · 2 comments

SlimRoms: Updates on the Horizon

SlimRoms' website has been experiencing technical difficulties for the last month or so, but it's good to know the team is working hard and is still on top of things. The SlimRoms GitHub repos are getting updated with some major changes showing up. Most notably, some projects are getting a new 5.1 branch: lp5.1! A new, revamped and open source website is also in the works, with a look inspired by material design. We also got a tip about an...

XDA NEWS
Emil Kako · Mar 27, 2015 at 12:47 pm · 2 comments

Your Favorite Wireless Charger?

Wireless charging is becoming more and more common as many OEMs are now starting to include this feature in their flagships. There are already dozens of wireless chargers to choose from on the market today, but quality definitely varies. For those of you who charge your devices wirelessly, let us know which charger is your favorite and why.

DISCUSS
Share This