Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3798160
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:31:35+00:00 2026-05-19T13:31:35+00:00

Developping games for android devices, I need to target devices that have no JIT

  • 0

Developping games for android devices, I need to target devices that have no JIT at all, and only rely on bytecode optimizations. I wonder if the set of these optimization is empty or not…

Actually, does the java compiler (the hard one, javac, not a JIT) makes any optimization like transforming a / 4 into a >> 2 ? Or is every optimization a work for the JIT ?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:31:36+00:00Added an answer on May 19, 2026 at 1:31 pm

    The standard Java compiler does some optimizations, but it leaves most of them to the JIT.

    The JIT knows on which processor exactly the program is running and also has access to runtime information, and therefore it can do more optimizations than the Java compiler could do in advance. Also, doing extensive optimizations in advance could “obfuscate” the byte code somewhat, making it harder for the JIT to optimize it.

    I don’t know what Google’s compiler does when it translates your Java byte code to Dalvik code – it might be doing more extensive optimizations.

    Maybe this tool will be useful for you: Dalvik Optimization and Verification With dexopt

    By the way, the example you mention is not always valid; transforming a / 4 into a >> 2 is not guaranteed to make your program run faster on any processor. I read an article somewhere once (sorry, can’t find it right now…) that explained that on (I think) modern x86 processors, a >> 2 might even be slower than a / 4.

    In any case, don’t do premature optimizations like transforming a / 4 to a >> 2 by hand in your source code unless you have real evidence (from performance measurements) that it’s worthwhile to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an android game application,I have implemented all the screens.Now i want
I'm in the process of developing an android game. I have an activity that
I am developing a game for Android. This game is Pacman, I have seen
I have been developing a game basic card game for Android. At the moment
I'm currently developing a small OpenGL game for the Android platform and I wonder
What are some toolkits for developing 2D games in Python? An option that I
I am developing an android game, in which i have some trains moving on
I'm developing an Android game that has to download some assets to the SD
I've finished setting up the Android SDK in Eclipse and now I have to
I am developing an Android application that controls the PC keyboard and mouse. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.