🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49390

what is bytecode & dumping parsed tree structures

#49390
From: Glen Overby
Date: Fri, 04 Feb 1994 04:09
26 lines
1633 bytes
A few questions (gcc-2.5.8):

1.  What is "bytecode"?  Is there a document describing it?

1a.  Can anyone compile with -fbytecode successfully?  On what kind of
system?

I compiled a incarnation of gcc hosted on sparc (sunos 4.1) with the
m68k (m68k-sun-sunos4) as a target (the only architecture that
supports bytecode) but cc1 coredumps before generating any output.

For the heck of it, I sucked the bytecode stuff from m68k.h into
sparc.h (yeah, I know the output won't be usable -- I'm still trying
to figure out what the output -is-) and I get a SIGSEGV from that cc1.

2.  Has anyone modified GCC to dump the parser's output, i.e. what gets
passed to `rest_of_compilation', or `rest_of_decl_compilation' in
`toplev.c'?

I'm working on some ideas where I need to parse a C program into a
form where I can analyse it with another program.

Send replies to me; if I get answers and there's interest, I'll post a
summary.

Glen Overby <overby@cray.com>
Technical Details
Message-ID: <1994Feb3.220913.22849@hemlock.cray.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!news.bu.edu!olivea!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!timbuk.cray.com!hemlock.cray.com!overby

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,21c277fad6eadba6,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-02-03 20:09:13 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!news.bu.edu!olivea!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!timbuk.cray.com!hemlock.cray.com!overby
From: overby@cray.com (Glen Overby)
Subject: what is bytecode & dumping parsed tree structures
Message-ID: <1994Feb3.220913.22849@hemlock.cray.com>
Lines: 26
Nntp-Posting-Host: fig15
Organization: Worldwide Pants, Inc.
Date: 3 Feb 94 22:09:13 CST