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 ...
- 03-31-2009 #1Just 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
- 03-31-2009 #2
- 03-31-2009 #3Just 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
- 03-31-2009 #4
Are you talking about expression parsing? If you are here's a link:
http://www.engr.mun.ca/~theo/Misc/exp_parsing.htmMake mine Arch Linux


Reply With Quote
