Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Parsing the gcc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 2392 of 2421
Post > Topic >>

Parsing the gcc assembly output

by Sreekumar <vksreekumar@[EMAIL PROTECTED] > Apr 20, 2008 at 12:34 AM

Hi All,

I would like to parse the assembly output of gcc (the *.s file that we
get when we compile the file with -s flag) to identify function calls,
function definitions and loops. I was wondering if there is a grammar
file for the assembly format printed out by gcc. Any suggestions that
might be a cleaner way to parse the assembly file would be very
helpful.

Thanks in advance

Sreekumar
[The assembler syntax is of course specific to the architecture of
your computer, but since most gcc output is assembled by the GNU
assembler gas, that's one place to start.  Some architectures use .y
files, some hand coded parsers.  On the other hand, for this sort of
analysis I suspect that some perl or python adhockery would work just
as well and be a lot easier. -John]




 1 Posts in Topic:
Parsing the gcc assembly output
Sreekumar <vksreekumar  2008-04-20 00:34:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 16:43:06 CDT 2008.