🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50640

source-level info in target code

#50640
From: Steven Novack
Date: Fri, 27 Aug 1993 23:30
32 lines
1894 bytes
We have tageted gcc to produce a 3-addr intermediate representation
that we then use as input to a parallelizing compiler for VLIW
architectures.  Unfortunately, we lose some source-level information
with this technique that could be useful to us.  In particular,
for each LOAD and STORE produced by gcc, I would like to know
why that memory reference was produced:

    o  Is it for an explicit reference in the source (e.g. an array
       reference)?  If so, then what is the source-level identifier
       being referenced? (I can get type information, etc. from debugging
       information produced in the 3-addr code).

    o  Or is it for spill code and/or argument passing?  What is the
       source-level identifier (if any)?

It seems like getting this information should simply be a matter of
passing the information from the TREE representation to the RTL
representation and then finally to the 3-addr target code, but I
don't know much about the internals of gcc, and am hoping that
one of you experts out there will be able to give me some hints
on how I can do this.

Thanks in advance!

Steve Novack
Dept. of ICS
Univ. of California
Irvine, CA  92717

office: (714) 725-2248
email: snovack@ics.uci.edu
Technical Details
Message-ID: <2C7E991B.29087@ics.uci.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usc!news.service.uci.edu!ucivax!snovack

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e62248e512781d92,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-08-27 16:41:22 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usc!news.service.uci.edu!ucivax!snovack
From: snovack@esp.ics.uci.edu (Steven Novack)
Subject: source-level info in target code
Nntp-Posting-Host: esp.ics.uci.edu
Message-ID: <2C7E991B.29087@ics.uci.edu>
Summary: Is the target op ``R <- M[addr]'' a load for A[i] in the source?
Newsgroups: gnu.gcc.help
Organization: Univ. of Calif., Irvine, Info. & Computer Sci. Dept.
Lines: 33
Date: 27 Aug 93 23:30:35 GMT