home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / atari / st / tech / 4653 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  3.7 KB

  1. Path: sparky!uunet!mcrware!mwca!bill
  2. From: bill@mwca.UUCP (Bill Sheppard)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: Falcon 030 ? nah wait the 040 !
  5. Message-ID: <1989@mwca.UUCP>
  6. Date: 1 Sep 92 21:08:35 GMT
  7. References: <1992Aug21.083142.16355@prl.dec.com> <1992Aug21.101507.12090@vlsi.louisville.edu> <1992Aug24.225128.26594@nosc.mil>
  8. Organization: Microware Systems Corp., Santa Clara, Ca.
  9. Lines: 59
  10.  
  11. In <1992Aug24.225128.26594@nosc.mil> healy@nosc.mil (Mike Healy) writes:
  12.  
  13. >I work on 680x0 VME based realtime systems. We have just gone from
  14. >Force CPU-30s (68030) to CPU-40s (68040) with no changes to our
  15. >code except recompiling with the proper switches. Of course we
  16. >use C (gcc actually)! I imagine assembler would involve a lot
  17. >of changes. I also think Wind River Systems had to make a lot
  18. >of changes to vxWorks, the realtime OS we use, so that it would
  19. >run on the CPU-40. How many of those changes were dictated by
  20. >the 68040 processor and how many by other parts of the board,
  21. >I don't know.
  22.  
  23. Actually, not much effort is _required_ to migrate from the 68030 to the
  24. 68040.  I work for Microware Systems, the makers of OS-9 (a competitor of
  25. VxWorks), and we also support the CPU-30 and CPU-40.  The operating system
  26. really doesn't need to worry much about the differences, although to optimize
  27. for the 040 you want to take advantage of its different cache architecture (we
  28. do).  The compiler maker (at Microware we do our own compiler technology, Wind
  29. River has customers use third-party or other compilers) needs to be concerned
  30. with differences in the floating point hardware and, for optimum performance,
  31. instruction set changes. (The 68882, typically designed in with a 68030, does
  32. both floating point and transcendental/trig functions in hardware, while the
  33. 68040's built-in FPU only does floating point necessitating software emulation
  34. for the transcendental/trig functions.)  However, in most cases the 68040 is
  35. 100% backwards compatible with the 68030, so object code need not be
  36. recompiled.  The Force CPU-40 does have some different support hardware than
  37. the CPU-30, so those particular drivers would need to be modified.
  38.  
  39. >We have noticed a definite speedup using the '40s in our
  40. >applications, but I have heard some horror stories of some
  41. >applications running the same or slower than '30s ( the math
  42. >functions not supported by the onboard FPU and hence microcoded
  43. >appear to be the culprits), but these might have been more
  44. >prevalent in the first ports to '40 boards (remember, a 68040
  45. >processor board has more components, and possible problems, than
  46. >just a 68040).
  47.  
  48. If there is lots of trigonometric code in your application you may find a
  49. 68040 to be slower than a 68030/68882 because the internal coprocessor can't
  50. directly handle the transcendentals.  (The 68060 is supposed to fix this.) 
  51. Other code, including normal floating point, will be faster on the 68040.
  52.  
  53. >At any rate, I don't think every C application would have to be
  54. >recoded to run on a '40, but assembler would be a different
  55. >story and also the more an application embedded itself in the
  56. >current hardware architecture, the more changes needed (and
  57. >a lot of those nifty games and graphics seem tightly embedded,
  58. >don't they?)
  59.  
  60. Neither assembler nor C code should need recompilation, as long as there are
  61. no direct trig calls.  Again, however, your compiler may be able to more
  62. highly optimize code for a 68040 than a 68030 if you _do_ recompile.
  63.  
  64. Bill
  65. -- 
  66.  ##############################################################################
  67.  # Bill Sheppard  --  Western Regional Sales Manager  --  bills@microware.com #
  68.  # Microware Systems Corporation -- OS-9 / OS-9000 / CD-RTOS -- (408)980-0201 #
  69.  ############## Opinions expressed are my own and usually wrong ###############
  70.