home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 826 of 2,753   
   glen herrmannsfeldt to Luciano   
   Re: Mixing mmix and C code?   
   17 Oct 06 01:06:40   
   
   From: gah@ugcs.caltech.edu   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca