Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Optimization settings for x86 and armeabi-v7a versions
Forum Updated to NodeBB v4.3 + New Features

Optimization settings for x86 and armeabi-v7a versions

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 5 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Francky033
    wrote on last edited by
    #1

    My application written with qt 5.11.1 on Android runs twice as fast on my tablet's atom cpu processor z3745 when the code is compiled in x86 than when it is compiled in armeabi-v7a...

    In the application's pro file, I use the same optimization parameters in both cases:

    QMAKE_CXXFLAGS_RELEASE +="-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
    QMAKE_CFLAGS_RELEASE += "-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
    QMAKE_LFLAGS_RELEASE += -O1

    How to explain such a speed difference between the x86 and armeabi-v7a versions ? nd what are the good optimization parameters for the armeabi-v7a version?

    Thank you!

    aha_1980A Pablo J. RoginaP 2 Replies Last reply
    0
    • F Francky033

      My application written with qt 5.11.1 on Android runs twice as fast on my tablet's atom cpu processor z3745 when the code is compiled in x86 than when it is compiled in armeabi-v7a...

      In the application's pro file, I use the same optimization parameters in both cases:

      QMAKE_CXXFLAGS_RELEASE +="-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
      QMAKE_CFLAGS_RELEASE += "-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
      QMAKE_LFLAGS_RELEASE += -O1

      How to explain such a speed difference between the x86 and armeabi-v7a versions ? nd what are the good optimization parameters for the armeabi-v7a version?

      Thank you!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Francky033,

      How to explain such a speed difference between the x86 and armeabi-v7a versions ?

      Without data, nobody can explain. You need to find out the slow parts in your app and then you can start to optimize it.

      QtCreator supports profiling. This should give you an idea about the slowest parts of your program.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Out of curiosity, are you running your application on processors with similar specs ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • F Offline
          F Offline
          Francky033
          wrote on last edited by
          #4

          I have an ASUS tablet that works very well with this processor. The display is particularly fast. The tablet is 4 years old...

          1 Reply Last reply
          0
          • F Francky033

            My application written with qt 5.11.1 on Android runs twice as fast on my tablet's atom cpu processor z3745 when the code is compiled in x86 than when it is compiled in armeabi-v7a...

            In the application's pro file, I use the same optimization parameters in both cases:

            QMAKE_CXXFLAGS_RELEASE +="-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
            QMAKE_CFLAGS_RELEASE += "-fsigned-char -funsigned-bitfields -O3 -DNDEBUG"
            QMAKE_LFLAGS_RELEASE += -O1

            How to explain such a speed difference between the x86 and armeabi-v7a versions ? nd what are the good optimization parameters for the armeabi-v7a version?

            Thank you!

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @Francky033 said in Optimization settings for x86 and armeabi-v7a versions:

            My application written with qt 5.11.1 on Android runs twice as fast on my tablet's atom cpu processor z3745 when the code is compiled in x86 than when it is compiled in armeabi-v7a...

            Just to be sure, because I may be missing something: are you saying that you can run your application compiled for X86 and then compiled for armeabi-v7a in the exact same tablet?

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            F 1 Reply Last reply
            0
            • Pablo J. RoginaP Pablo J. Rogina

              @Francky033 said in Optimization settings for x86 and armeabi-v7a versions:

              My application written with qt 5.11.1 on Android runs twice as fast on my tablet's atom cpu processor z3745 when the code is compiled in x86 than when it is compiled in armeabi-v7a...

              Just to be sure, because I may be missing something: are you saying that you can run your application compiled for X86 and then compiled for armeabi-v7a in the exact same tablet?

              F Offline
              F Offline
              Francky033
              wrote on last edited by Francky033
              #6

              @Pablo-J.-Rogina yes... I'm running the two compilations on the same tablet(the CPU is compatible with the armv7 and the x86 binairies).. and I can see a speed difference on the exact same tablet... The x86 compiled version is faster...

              Pablo J. RoginaP jsulmJ 2 Replies Last reply
              0
              • F Francky033

                @Pablo-J.-Rogina yes... I'm running the two compilations on the same tablet(the CPU is compatible with the armv7 and the x86 binairies).. and I can see a speed difference on the exact same tablet... The x86 compiled version is faster...

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @Francky033 said in Optimization settings for x86 and armeabi-v7a versions:

                same tablet(the CPU is compatible with the armv7 and the x86 binairies

                Ok, I didn't know about that capability for the processor.

                In that case and without any further data, I assume the Atom CPU is faster with x86 binaries because it runs native code for its architecture while when running ARM binaries some sort of emulation layer should be employed and thus slowing things down.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                3
                • F Offline
                  F Offline
                  Francky033
                  wrote on last edited by
                  #8

                  It's a possibility.... Indeed...

                  1 Reply Last reply
                  0
                  • F Francky033

                    @Pablo-J.-Rogina yes... I'm running the two compilations on the same tablet(the CPU is compatible with the armv7 and the x86 binairies).. and I can see a speed difference on the exact same tablet... The x86 compiled version is faster...

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by jsulm
                    #9

                    @Francky033 said in Optimization settings for x86 and armeabi-v7a versions:

                    the CPU is compatible with the armv7 and the x86 binairies

                    Never heard about such CPU. Most probably it executes ARM binaries using an emulation and that's why ARM binaries are slower.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved