fche | 4 Mar 2006 15:13
Favicon

new cgen snapshot available

A new automated cgen CVS snapshot is available.
ftp://sources.redhat.com/pub/cgen/snapshots/cgen-20060304.tar.bz2
1290834 bytes

Frank Ch. Eigler | 4 Mar 2006 18:22
Picon
Favicon
Gravatar

Forw: Hi you there and how to run Cgen sample

From: chucking <at> sjtu.org
Subject: Hi you there and how to run Cgen sample

Hi,   
   I am a first year CS post graduate in China , and new to CGEN.
   I wanna try Cgen's included example like ia32, and expect to gain experience of using it for gnu binary
utility port.
   I tried as follows: configure, make , but got nothing as an executable to run in the end.
   And I turn to manual on your site, only to find the "how to run " chapter almost empty on that.
   So I wonder if you can help me out, and give me some infomation about running Cgen's included sample?

   I am working on a minimum-equipped Cygwin, with all the gnu build tool there.   
   Hope I am not bothering you too much:-)
   Expecting your helping reply at your earliest convenience.

Yours faithfully,

                      Chuck Jin

Lorenzo.Motter | 8 Mar 2006 10:17

MIL-STD-1750A description

Is anywhere available the CPU file description for the old veneralble
MIL-STD-1750A?
Thanks.
--
DISCLAIMER:
This e-mail contains proprietary information some or all of which may be
legally privileged. It is for the intended recipient only. If an addressing
or transmission error has misdirected this e-mail, please notify the author
by replying to this e-mail. If you are not the intended recipient you must
not use, disclose, distribute, copy, print, or rely on this e-mail.

fche | 11 Mar 2006 15:13
Favicon

new cgen snapshot available

A new automated cgen CVS snapshot is available.
ftp://sources.redhat.com/pub/cgen/snapshots/cgen-20060311.tar.bz2
1291169 bytes

Frank Ch. Eigler | 14 Mar 2006 00:02
Picon
Favicon
Gravatar

Re: Forw: Hi you there and how to run Cgen sample


> [...]  I wanna try Cgen's included example like ia32, and expect to
> gain experience of using it for gnu binary utility port.

The ia32 port was never completed - it's only experimental.
You may find this old thread helpful to get you started:
http://sourceware.org/ml/cgen/2003-q4/msg00014.html

- FChE

Hans-Peter Nilsson | 14 Mar 2006 14:34
Picon
Favicon

Re: [RFA:] Fix breakage of manually building SID CPU

> Date: Mon, 30 Jan 2006 12:21:20 -0500
> From: Dave Brolley <brolley <at> redhat.com>

> The patch looks ok to me. Please go ahead and commit it.

Finally done.

I must mention at least for the record that I see further errors
stopping generation of a SID cgen-cpu description with sources
as of today, for example the guile command sequence:

(load "dev.scm")
(load-sid)
(cload #:arch "../../cpu/cris" #:options "with-scache" #:machs "crisv32")
(cgen-semantics.cxx)

Gets:
... (seemingly successfully output C++ semantic translations.)
  return status;
#undef FLD
}

Processing semantics for bcc-b: "b${cc} ${o-pcrel}" ...

Backtrace:
In ./rtl-c.scm:
1400:  0* [string-append "(delay ...) rtx applied to wrong type of operand '" ...]
1398:  1  [context-error #f ...
1393:  2* (if (let # #) (context-error # #))
1387:  3  (let* (# # #) (if # #) (if # #) ...)
(Continue reading)

Dave Brolley | 14 Mar 2006 17:46
Picon
Favicon

Re: [RFA:] Fix breakage of manually building SID CPU

Hans-Peter Nilsson wrote:

>(i.e. the earliest occurrence of "delay" for the enabled mach).
>I guessed this could be related to some change in delay
>semantics, but the usage in cris.cpu seems no different to other
>*.cpu.  Except that some *.cpu use (delay (const 1) ...) instead
>of (delay 1 ...) but unfortunately that doesn't help; changing
>that doesn't affect the behavior.
>
>  
>
(delay 1 ...) vs (delay (const 1) ...) won't make a difference. They are 
identical.

However, It seems that CGEN generating SID expects a different syntax 
for delay than CGEN generating SIM.

CGEN generating sid expects

    (set (delay 1 pc) retaddr)

while CGEN generating SIM expects

    (delay 1 (set pc retaddr))

I do recall the new syntax being introduced some time ago, however, I 
don't recall that the old syntax was depricated. Does anyone know if 
both are still supposed to work?

Dave
(Continue reading)

Hans-Peter Nilsson | 14 Mar 2006 18:02
Picon
Favicon

Re: [RFA:] Fix breakage of manually building SID CPU

> Date: Tue, 14 Mar 2006 11:46:45 -0500
> From: Dave Brolley <brolley <at> redhat.com>

> However, It seems that CGEN generating SID expects a different syntax 
> for delay than CGEN generating SIM.
> 
> CGEN generating sid expects
> 
>     (set (delay 1 pc) retaddr)
> 
> while CGEN generating SIM expects
> 
>     (delay 1 (set pc retaddr))
> 
> I do recall the new syntax being introduced some time ago, however, I 
> don't recall that the old syntax was depricated. Does anyone know if 
> both are still supposed to work?

FWIW, the "new syntax" didn't catch my eye as I saw only
src/cpu/mt.cpu using it; none in src/cgen/cpu.  Maybe some wart
was introduced in whatever compatibility there is.

brgds, H-P

Frank Ch. Eigler | 14 Mar 2006 18:16
Picon
Favicon
Gravatar

Re: [RFA:] Fix breakage of manually building SID CPU

Hi -

> >(i.e. the earliest occurrence of "delay" for the enabled mach).
> >I guessed this could be related to some change in delay
> >semantics, but the usage in cris.cpu seems no different to other
> >*.cpu.  [...]

I believe (delay) was never implemented properly for the SIM backend,
only for SID.  I expect it to be treated rather like a no-op for SIM,
or equivalently, that any SIM-targeting .cpu users of (delay) should
work just as well without.

- FChE

Hans-Peter Nilsson | 14 Mar 2006 22:24
Picon
Favicon

Re: [RFA:] Fix breakage of manually building SID CPU

> Date: Tue, 14 Mar 2006 12:16:55 -0500
> From: "Frank Ch. Eigler" <fche <at> redhat.com>

> > >(i.e. the earliest occurrence of "delay" for the enabled mach).
> > >I guessed this could be related to some change in delay
> > >semantics, but the usage in cris.cpu seems no different to other
> > >*.cpu.  [...]
> 
> I believe (delay) was never implemented properly for the SIM backend,
> only for SID.  I expect it to be treated rather like a no-op for SIM,
> or equivalently, that any SIM-targeting .cpu users of (delay) should
> work just as well without.

Um, what (delay) are you referring to above?
A (delay 1 (set pc something)) certainly is different
to (set pc something).

I now think it's the cris.cpu pc setter function that may have
something that causes the SID cgen-cpu generators to barf.

brgds, H-P


Gmane