Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Running ARM assembly code in Qt Creator.
QtWS25 Last Chance

[SOLVED]Running ARM assembly code in Qt Creator.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 3.5k Views
  • 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.
  • M Offline
    M Offline
    musimbate
    wrote on 15 Jan 2014, 05:48 last edited by
    #1

    Hi,
    I have been using Qt Creator for quite some time now and I tend to use it to do everything :-) .I was wondering if it is possible to run ARM assembly code (on some kind of simulator) in Qt Creator.I currently use Keil (commercial) but would like to get the same things done in Qt Creator.

    "this":http://stackoverflow.com/questions/10840072/arm-assembly-language-ide-on-windows suggested that it is possible using the android skd/ndks in eclipse ,and since we can use Qt now to program for android I think it might be possible to do the same from Qt Creator.

    I was wondering if anybody has done the same thing and what might be needed to get the environment set up.Any ARM architecture simulator would also be fine as this is some kind of personal learning.

    Thanks.

    Why join the navy if you can be a pirate?-Steve Jobs

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nicky j
      wrote on 15 Jan 2014, 06:12 last edited by
      #2

      You mean write a program with ARM assembly in the Qt creator, or integrate it with the Qt C++ libs? I am no expert and I would love to be proved wrong, but I don't think you can.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        musimbate
        wrote on 15 Jan 2014, 06:31 last edited by
        #3

        Thanks for the reply nick j,
        [quote author="nicky j" date="1389766378"]You mean write a program with ARM assembly in the Qt creator, or integrate it with the Qt C++ libs? [/quote]
        I mean write a program with ARM assembly in Qt Creator.But if the Qt Creator compiled code runs on ARM based processors there should be a way to jump over some compilation steps and talk more directly to the processor right?
        Also many android devices now have run on ARM based processors.If Qt 5.2 can compile code that runs on these devices ,the compiler somehow transforms QML code into ARM instructions.

        May be someone more experienced could help shed some light on this.

        Thanks again.

        Why join the navy if you can be a pirate?-Steve Jobs

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nicky j
          wrote on 16 Jan 2014, 01:21 last edited by
          #4

          Yeah sorry I couldn't be more helpful

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dheerendra
            Qt Champions 2022
            wrote on 16 Jan 2014, 02:30 last edited by
            #5

            Using the QtCreator you can't write ARM instruction code. It is using the cross compiler to compile the code for target ARM processor. So arm cross compiler installed on Qt creator box is producing the instruction set. So finally compiled binary has to deployed on ARM based processor. Hope this clarifies.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            1 Reply Last reply
            0
            • M Offline
              M Offline
              musimbate
              wrote on 16 Jan 2014, 05:16 last edited by
              #6

              [quote author="nicky j" date="1389835286"]Yeah sorry I couldn't be more helpful[/quote]
              You were helpful already : I can't write ARM instructions in Qt Creator based on Dheerendrea's explanation.After all I feel like I was trying to use the wrong tool for the job :D.

              [quote author="Dheerendra" date="1389839426"] It is using the cross compiler to compile the code for target ARM processor. So arm cross compiler installed on Qt creator box is producing the instruction set. So finally compiled binary has to deployed on ARM based processor. Hope this clarifies.[/quote]
              Thanks for the reply and it is clear.I guess I have to stick to IDEs designed for assembly instruction code.

              Why join the navy if you can be a pirate?-Steve Jobs

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dheerendra
                Qt Champions 2022
                wrote on 16 Jan 2014, 05:23 last edited by
                #7

                Can you put the topic as solved ? This closes this question.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andrep
                  wrote on 16 May 2014, 21:38 last edited by
                  #8

                  I don't think Dheerendra's answer is correct.

                  Assembler sources are "normal" text, and you can edit them in Qt Creator. You don't get special auto-completion etc. but that's it. The result can be passed to a compiler/assembler as part of yout project, and you can run/debug it as any other code,

                  Have you tried? What happened?

                  1 Reply Last reply
                  0

                  • Login

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