Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am looking for a solution to find some relativity between *.c and its *.out file in gcc (g++) execution. as example gcc hello.c -o hello.out I am looking ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    1

    how to relate gcc *.c file with its .out file


    Hi,
    I am looking for a solution to find some relativity between *.c and its *.out file in gcc (g++) execution.
    as example gcc hello.c -o hello.out
    I am looking to find how we can surely conclude that hello.out is generated from hello.c
    This I am looking to find semantically identical files, which can be regenerated if it is needed.
    Also I am thinking to trace all system calls associated with gcc execution and parse input and output file name, then stored those pair in table.
    This seems very difficult, but no whereto start that why I choose this way.

    All suggestions are appreciated
    Regards
    Shanim

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,392
    Please move this thread to the Linux Programming and Scripting forum. This one is for kernel questions. Thx.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •