Re: Gnu C compiler RTL question

Timothy Kong <kong@ece.ucdavis.edu>
18 Sep 1998 23:02:37 -0400

          From comp.compilers

Related articles
Gnu C compiler RTL question dadorran@my-dejanews.com (1998-09-13)
Re: Gnu C compiler RTL question kong@ece.ucdavis.edu (Timothy Kong) (1998-09-18)
Re: Gnu C compiler RTL question lehotsky@tiac.net (1998-09-18)
Re: Gnu C compiler RTL question misar@rbg.informatik.tu-darmstadt.de (1998-09-18)
| List of all articles for this month |
From: Timothy Kong <kong@ece.ucdavis.edu>
Newsgroups: comp.compilers
Date: 18 Sep 1998 23:02:37 -0400
Organization: University of California, Davis
References: 98-09-034
Keywords: GCC

dadorran@my-dejanews.com wrote:
: I read somewhere that the RTL is independent of the machine description, but
: looking at some compiled code shows that it does depend on the registers used
: as the stack and frame pointers.


: Are thes the only instances where this occurs??


GCC RTL is machine independent in general, but the specific RTL generated
is machine-dependent. Some machine-dependent RTL features:


    - machine specific register usage:
            frame pointer, stack pointer, function return value register,
            function return pointer register


    - existence of a conditional code register, represented by cc0_rtx


    - the forms of the RTL insns generated depend on the availability of
        machine instructions; for example, this type if RTL is not generated
        for a machine with a load/store architecture:


                (set (reg ...)
                          (plus (reg ...) (mem ...)))


Tim
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.