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. Reterive addresses of variables of C programs in a file
Forum Updated to NodeBB v4.3 + New Features

Reterive addresses of variables of C programs in a file

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 836 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.
  • P Offline
    P Offline
    parulkalra14
    wrote on last edited by
    #1

    I have plaintextEdit on which C program will be written ,i am able to reterive the entire program in one input file and also able to find the output of the entire program but i want to extract only variables used in the program with their addresses in another file. Is it possible to reterive all variables with their addresses in one file?? Any help would be appreciable!!!

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      If you only have the C code, mayby try to find the 'extern' keyword to locate the variables available in different files. Otherwise, you need the linker or object files.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • P Offline
        P Offline
        parulkalra14
        wrote on last edited by
        #3

        I have C and C++ program only. Do you have any idea for creating the files only for variables and their addresses using linking?

        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