Find the answer to your Linux question:
Results 1 to 4 of 4
hi! i'm a new linux user and a i'm trying to learn how to program in c too. can somebody help me about a program that returns the live range ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    live range c program

    hi!

    i'm a new linux user and a i'm trying to learn how to program in c too.
    can somebody help me about a program that returns the live range of the variables?
    i'm a little confused about the syntax and don't know what to put in the makefile to return this.

    thanks, nuno

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Quote Originally Posted by Nuno1714 View Post
    a program that returns the live range of the variables?
    What's a live range of variables?...Gerard4143

    Maybe if you gave us/me an example...
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    thanks for the fast reply..

    imagine you have a function with many variables like: d = (a - b) / (c - d) - 2 * (b + 7) / 3,
    so you divide it in parts..

    LINE1 live: a c b d
    LINE2 u = a - b
    L3 v = c - d
    L4 w = u / v
    L5 c = b + 7
    L6 y = c / 3
    L7 z = 2 * y
    L8 d = w - z
    L9 live: d

    what I mean is that my program would have a output like
    a 1 2
    b 1 5
    c 1 6
    ...
    so the output is (char, live in, live out). it's the first line a variable appears and the last one. i heard about something, a C3E file?

    sorry my bad english, i'm portuguese.

    thanks

  4. #4
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Are you talking about expression parsing? If you are here's a link:

    http://www.engr.mun.ca/~theo/Misc/exp_parsing.htm
    Make mine Arch Linux

Posting Permissions

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