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. Could I observe the assembly by QtCreator?
Qt 6.11 is out! See what's new in the release blog

Could I observe the assembly by QtCreator?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 9.7k Views 1 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    @
    int main()
    {
    const int a = factorial(0);

    return 0;
    

    @

    I would like to look at the assembly codes generate by the gcc(release version)
    Do QtCreator has some function could let me observe it?Thanks

    1 Reply Last reply
    0
    • F Offline
      F Offline
      franku
      wrote on last edited by
      #2

      Two Ideas:

      1. In QtCreator (I use 2.5) go to Debug menu and enable "Operate by instruction". This will show you the disassembly and you can step through the instructions.

      2. You may want to use 'objdump -D' to generate a disassembled version of your whole application. This is no QtCreator feature, however. But it's contained in the SDK's MinGW release für command line use.

      This, Jen, is the internet.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        issam
        wrote on last edited by
        #3

        Hi, try :
        @
        gcc -s your_code.c
        @
        You will get the assembly program (known as the intermediate code or also the target code ) : your_code.s

        http://www.iissam.com/

        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