public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Using GCC as code generator
@ 2003-01-24 21:38 Hong Lin
  2003-01-24 23:47 ` Eric Christopher
  2003-01-27 21:52 ` Jim Wilson
  0 siblings, 2 replies; 3+ messages in thread
From: Hong Lin @ 2003-01-24 21:38 UTC (permalink / raw)
  To: gcc

Hi, 
I am currently exploring the possibility of using gcc backend to generate
binary code from an intermediate representation. I appreciate very much if
anyone could point me to any references or give any suggestions. In
particular, I need to find out the answer for
1. Up to dated specification of the intermediate representation that gcc
uses (tree, RTL)
2. the way to invoke gcc backend independantly of the frontend
Thank you.
Hong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using GCC as code generator
  2003-01-24 21:38 Using GCC as code generator Hong Lin
@ 2003-01-24 23:47 ` Eric Christopher
  2003-01-27 21:52 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Christopher @ 2003-01-24 23:47 UTC (permalink / raw)
  To: Hong Lin; +Cc: gcc

On Fri, 2003-01-24 at 12:50, Hong Lin wrote:
> Hi, 
> I am currently exploring the possibility of using gcc backend to generate
> binary code from an intermediate representation. I appreciate very much if
> anyone could point me to any references or give any suggestions. In
> particular, I need to find out the answer for
> 1. Up to dated specification of the intermediate representation that gcc
> uses (tree, RTL)

This is in the documentation available on gcc.gnu.org.

> 2. the way to invoke gcc backend independantly of the frontend

This is not possible, and unlikely necessary for what your aims are.

-eric

-- 
Strapping on the jetpack...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using GCC as code generator
  2003-01-24 21:38 Using GCC as code generator Hong Lin
  2003-01-24 23:47 ` Eric Christopher
@ 2003-01-27 21:52 ` Jim Wilson
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2003-01-27 21:52 UTC (permalink / raw)
  To: Hong Lin; +Cc: gcc

>2. the way to invoke gcc backend independantly of the frontend
>Thank you.

Unfortunately, FSF policy prevents us from having independent frontends and
backends.  The reason for the policy is to prevent parts of GCC from being
used with proprietary compilers.

Thus, at present, if you want to feed IR into gcc, you need to hack gcc first.

You might find it easier to write an IR to C conversion pass, and then feed
the C code into gcc.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-27 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-24 21:38 Using GCC as code generator Hong Lin
2003-01-24 23:47 ` Eric Christopher
2003-01-27 21:52 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).