Re: Mixing mmix and C code?

glen herrmannsfeldt <gah@ugcs.caltech.edu>
17 Oct 2006 01:06:40 -0400

          From comp.compilers

Related articles
Mixing mmix and C code? nhbfluci@rrzn-user.uni-hannover.de (Luciano) (2006-10-10)
Re: Mixing mmix and C code? tommy.thorn@gmail.com (Tommy Thorn) (2006-10-11)
Re: Mixing mmix and C code? nhbfluci@rrzn-user.uni-hannover.de (Luciano) (2006-10-16)
Re: Mixing mmix and C code? tommy.thorn@gmail.com (Tommy Thorn) (2006-10-17)
Re: Mixing mmix and C code? danwang74@gmail.com (Daniel C. Wang) (2006-10-17)
Re: Mixing mmix and C code? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-10-17)
Re: Mixing mmix and C code? tommy.thorn@gmail.com (Tommy Thorn) (2006-10-19)
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: 17 Oct 2006 01:06:40 -0400
Organization: Compilers Central
References: 06-10-034 06-10-050 06-10-065
Keywords: interpreter
Posted-Date: 17 Oct 2006 01:06:40 EDT

Luciano wrote:


(snip)


> That is, is it possible to do something like this


> int fatt(int);
> main (){
> int i,j;
> i=2;
> j=fatt(i);
> printf ("fatt(%d)=%d\n",i,j);
> }
> int fatt (int){
> /* here I write the code
> possibly taken from Knuth's books
> with little extra converting effort
> */
> }


I haven't followed MMIX lately. Is there a C compiler to generate
MMIX code?


When I first learned assembly (for OS/360) all my programs were
Fortran callable subroutines or functions. That made it much easier
as all the I/O was done in Fortran, and I could concentrate on the
logic.


I would say it is the best way to practice assembler programming for
most processors while you are learning it one step at a time.


I don't know if the MMIX C compiler is good enough, though.


-- glen


Post a followup to this message

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