2001-06-20-.NET-Differences.txt 1.4 KB

123456789101112131415161718192021222324252627282930
  1. Date: Wed, 20 Jun 2001 12:32:22 -0500
  2. From: Vikram Adve <vadve@cs.uiuc.edu>
  3. To: Chris Lattner <lattner@cs.uiuc.edu>
  4. Subject: .NET vs. our VM
  5. One significant difference between .NET CLR and our VM is that the CLR
  6. includes full information about classes and inheritance. In fact, I just
  7. sat through the paper on adding templates to .NET CLR, and the speaker
  8. indicated that the goal seems to be to do simple static compilation (very
  9. little lowering or optimization). Also, the templates implementation in CLR
  10. "relies on dynamic class loading and JIT compilation".
  11. This is an important difference because I think there are some significant
  12. advantages to have a much lower level VM layer, and do significant static
  13. analysis and optimization.
  14. I also talked to the lead guy for KAI's C++ compiler (Arch Robison) and he
  15. said that SGI and other commercial compilers have included options to export
  16. their *IR* next to the object code (i.e., .il files) and use them for
  17. link-time code generation. In fact, he said that the .o file was nearly
  18. empty and was entirely generated from the .il at link-time. But he agreed
  19. that this limited the link-time interprocedural optimization to modules
  20. compiled by the same compiler, whereas our approach allows us to link and
  21. optimize modules from multiple different compilers. (Also, of course, they
  22. don't do anything for runtime optimization).
  23. All issues to bring up in Related Work.
  24. --Vikram