Re: Mixing mmix and C code?

"Tommy Thorn" <tommy.thorn@gmail.com>
17 Oct 2006 01:05:22 -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: "Tommy Thorn" <tommy.thorn@gmail.com>
Newsgroups: comp.compilers
Date: 17 Oct 2006 01:05:22 -0400
Organization: Compilers Central
References: 06-10-03406-10-050 06-10-065
Keywords: interpreter
Posted-Date: 17 Oct 2006 01:05:22 EDT

Luciano wrote:
> I try to reformulate my wish better:
> How do I code an MMIX example program in such a way that it becomes a
> subroutine inside a C-language program?
> 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 agree with John, your problem is ill defined. Most likely what you
think you want to do is not what you should be doing.


Start by getting Knuth's MMIXware running. It's this package at
http://www-cs-faculty.stanford.edu/~knuth/programs/mmix-20060918.tar.gz
which could have been found with trivial googling.


If you manage to get small assembler programs running, then get and
build gcc for MMIX.


Tommy


Post a followup to this message

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