🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49550

Where to find Basic Blocks

#49550
From: Richard A. Agnew
Date: Tue, 04 Jan 1994 19:15
22 lines
1635 bytes
Can anyone help?  I'm trying to add semantics to gcc that key off basic blocks in 
a users source code.  I've pretty much found all basic blocks except two in 
particular.  I'm trying to find, grammatically, where the beginning of a procedure
declaration, after the variable declartaions, and before the first statement
occurs.  I'm also trying to find the point after which a procedure is called.

These two places are really my only problems at this point.  I've been using the
lineno_labeled_stmt part of the grammar in c-parse.y to find where a basic block
occurs.  This doesn't seem to apply for the previous mentioned problems.

If there's anyone out there that can help me, it would be greatly appreciated.

Thanks in advance, and send replies to below e-mail addresses!

---
Richard A. Agnew
Graduate Research Assistant
Electrical and Computer Engineering Dept.
100-F Riggs Hall
Clemson University
Clemson, South Carolina  29634-0915
E-MAIL:  ragnew@eng.clemson.edu or ragnew@clemson.clemson.edu
Technical Details
Message-ID: <1994Jan4.191537.26699@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!hubcap!news

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ca90a26edfc3be8d,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-01-04 11:57:53 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!hubcap!news
From: ragnew@eng.clemson.edu (Richard A. Agnew)
Subject: Where to find Basic Blocks
Message-ID: <1994Jan4.191537.26699@hubcap.clemson.edu>
Sender: news@hubcap.clemson.edu (news)
Reply-To: ragnew@eng.clemson.edu
Organization: Clemson University College of Engineering
Date: Tue, 4 Jan 1994 19:15:37 GMT
Lines: 24