Open GoogleCodeExporter opened 8 years ago
Test Case:
see the attechment.
>tacc main.acc -o a
>./a
Expected Output:
before main.
in main.
int a is modified.
a is '5'.
Tentative Solution:
Since the current compile strategy is:
acc xxx.mc xxx.acc
-preparse the files and generate two .c files.
tacc xxx.c xxx.acc
-preparse the files and gcc compile the parsed files and generate .exe file.
ACC doesn't have the feature to compile one mixed file (mixed of .c and .acc
code).
To do this, what we can do is that we can parse the mixed file and then use
tacc just
as before.
To parse the mixed code, we can develop parsing algorithm or use existing
parsing tools.
The solution to this problem will be updated soon.
Original comment by kedeng1...@gmail.com
on 13 May 2010 at 9:16
Attachments:
Original issue reported on code.google.com by
lzmliz...@gmail.com
on 13 May 2010 at 7:05