Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!amelia!lemming.nas.nasa.gov!fouts From: fouts@lemming.nas.nasa.gov.nas.nasa.gov (Marty Fouts) Newsgroups: comp.lang.fortran Subject: Re: Fortran versus C for numerical analysis Message-ID: <976@amelia.nas.nasa.gov> Date: 9 Sep 88 01:44:44 GMT References: <1421@ficc.uu.net> <3349@lanl.gov> Sender: news@amelia.nas.nasa.gov Reply-To: fouts@lemming.nas.nasa.gov.nas.nasa.gov (Marty Fouts) Organization: NASA Ames Research Center Lines: 17 In article <3349@lanl.gov> jlg@lanl.gov (Jim Giles) writes: >The problem with C is that >it provides _no_ way to force a given order of expression evaluation I can't let you get away with this. _no_ way is very strong. C allows you to break the expression up into subexpressions, calculate the subexpressions into temporary variables and then combine the temps into the final expression. If you don't run the optimizer on this code, you are going to get exactly what you express. (;-) Marty +-+-+-+ I don't know who I am, why should you? +-+-+-+ | fouts@lemming.nas.nasa.gov | | ...!ames!orville!fouts | | Never attribute to malice what can be | +-+-+-+ explained by incompetence. +-+-+-+