Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  In this chapter we examined five programming language translators. We
  covered the major design issues involved in building an executable program
  that calls subroutines. Figures 20-4, 20-5, and 20-6 summarize some
  characteristics of the language translators we discussed.

  Language                 Default Memory Model
  --------------------------------------------------------------------------
  Interpreted BASIC        Medium
  QuickBASIC               Medium
  Microsoft C              Small
  Turbo Pascal             Large
  --------------------------------------------------------------------------

  Figure 20-4.  Default memory models for several popular programming
  languages.

                           Default Parameter-
  Language                 Passing Method          Parameter Order
  --------------------------------------------------------------------------
  Interpreted BASIC        Reference               Forward
  QuickBASIC               Reference               Forward
  Microsoft C              Value                   Reverse
  Turbo Pascal             (Varies)                Forward
  --------------------------------------------------------------------------

  Figure 20-5.  Parameter-passing conventions for several popular
  programming languages.

  Language                 Registers Used by Language Translator
  --------------------------------------------------------------------------
  Interpreted BASIC        DS, ES, SS, BP
  QuickBASIC               DS, SS, BP, SI, DI
  Microsoft C              DS, SS, BP, SI, DI
  Turbo Pascal             DS, SS, BP
  --------------------------------------------------------------------------

  Figure 20-6.  Register usage conventions followed by several popular
  programming languages. Preserve these registers if you change them in a
  subroutine.

  Even if you never plan to write an assembly-language program or link
  subroutines written in different languages into the same program, we hope
  you've found it interesting to see how these different language
  translators do their work.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson