UNLIMITED

Linux Format

Low-level kernel access and coding

Learning assembly language won’t make you a faster programmer. It won’t enable you to create portable, write-once run-anywhere programs. It’s not object-orientated. It’s not new. So why learn it? The answer is that it just might make you a better programmer. By learning just what a processor can and can’t do, you’re on the way to a deeper understanding of computer science.

A processor doesn’t just perform arithmetic – it also performs Boolean logic operations. Understanding Boolean logic operations teaches you about the Boolean logic gates inside the CPU and how the CPU uses these logic gates to make decisions. That just might make you a more capable computer engineer as well as a better programmer.

Assembly language is a low-level language: it’s specific to a particular processor. You use it to program a specific processor at the hardware level. Compilers understand assembly language, because that’s what they use to create the instructions in high-level languages. C++ is used to create many different programming languages. The C++ compiler strings together lots of assembly language instructions to do its work. Every kind of program ultimately executes machine language on the computer.

Some assembly required

Assembly language is simply machine language with mnemonics. Mnemonics are names given to machine language instructions, also known as op codes, so that we don’t have to remember hundreds of numeric values. It allows us to write a program using identifiers like ADD, SUB, MOV and so on.

High-level languages make programs portable – they enable you to program without worrying about the low-level details of how the CPU works. They provide the abstraction that lets you think about problems at a higher level. Object-orientated languages like C++, Java, C#, Python and so on are ‘higher’ high-level languages that enable you to incorporate the problem domain into your program. The programs you create with an object-orientated language ‘understand’

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Video Stars
Italo Vignoli is one of the founders of LibreOffice and the Document Foundation. “LibreOffice 24.8 was announced in August, and at the same time the documentation team released the Getting Started Guide. This was the first time the manual was immedia
Linux Format1 min read
Your Digital Issue Access
» As a big thank you for subscribing to Linux Format Print Edition, we’ve always offered digital access to past issues. It seems The Management thought it was a good idea and has rolled out a new system using Pocketmags ! This means there are now two
Linux Format2 min read
Audacious
Version: 4.4.1 Web:https://audacious-media-player.org Sometimes you just need a simple music player. No music library, no streaming from privacy-invading proprietary services, no overcooked user interface. Just a lightweight tool that doesn’t make li

Related Books & Audiobooks