Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]Running ARM assembly code in Qt Creator.
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.
nicky j last edited by
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.
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.
nicky j last edited by
Yeah sorry I couldn't be more helpful
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.
[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.
Can you put the topic as solved ? This closes this question.
andrep last edited by
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?