Write Great Code, Volume 2

ebook Thinking Low-Level, Writing High-Level

By Randall Hyde

cover image of Write Great Code, Volume 2

Sign up to save your library

With an OverDrive account, you can save your favorite libraries for at-a-glance information about availability. Find out more about OverDrive accounts.

   Not today

Find this title in Libby, the library reading app by OverDrive.

Download Libby on the App Store Download Libby on Google Play

Search for a digital library with this title

Title found at these libraries:

Library Name Distance
Loading...

In the beginning, most software was written in assembly,the CPU's low-level language, in order to achieveacceptable performance on relatively slow hardware.Early programmers were sparing in their use of highlevellanguage code, knowing that a high-levellanguage compiler would generate crummy, low-levelmachine code for their software. Today, however,many programmers write in high-level languages likeC, C++, Pascal, Java, or BASIC. The result is oftensloppy, inefficient code. You don't need to give up theproductivity and portability of high-level languages inorder to produce more efficient software.In this second volume of the Write Great Code series,you'll learn:

  • How to analyze the output of a compiler to verify thatyour code does, indeed, generate good machine code
  • The types of machine code statements that compilerstypically generate for common control structures, so youcan choose the best statements when writing HLL code
  • Just enough 80x86 and PowerPC assembly languageto read compiler output
  • How compilers convert various constant andvariable objects into machine data, and how to usethese objects to write faster and shorter programs

    With an understanding of how compilers work, you'llbe able to write source code that they can translateinto elegant machine code. That understanding startsright here, with Write Great Code, Volume 2: ThinkingLow-Level, Writing High-Level.

  • Write Great Code, Volume 2