lowlevelprogramming-university/README.md
2017-01-06 10:27:57 +01:00

6.6 KiB

Low-Level Programming University

What is it?

This page is for beginner who want to be low-level programmer.

I'm inspired by google-interview-university. I'd like to share my experience and show a kind of roadmap to be low-level programmer because I found that the low-level programmer is getting rare. And many students and beginners asked me how I could be low-level programmer and Linux kernel engineer.

I've working as low-level programmer for 10 years.

  • 80x86 Assembly programming
  • Hardware device with Atmel chip and firmware
  • C language system programming for Unix
  • Device driver in Linux
  • Linux kernel: page allocation
  • Linux kernel: block device driver and md module

What Is the Low-Level?

I think the low-level programming is programming something that is very close to the machine, rather than the user. The user can be people who use the computer and programmer who use the product of low-level programmer.

Yes, system programming is very close concept to the low-level programming. But this page includes the hardware design and firmware development that is not included in system programming.

Finally this page includes topics from the hardware components to Linux kernel. That is the huge range of layers. One page document can never cover the detail of all layers. The aim of this page is beging the starting point of the low-level programming.

Languages

Assembly

C language

There is no short-cut. Just read the entire book and solve all exercises.

Applications

Hardware && Firmware

If you want to be Embedded system engieer, it'd better start from simple hardware kit. It's not good idea to start with the latest ARM chipset.

  • Arduino Start Kit
  • There are various series of Arduino but "Arduino Start Kit" has the most simple processor(Atmega328P) and guide book
  • Atmega328P has 8bit core that is the good to start "Digital circuit design" and "Firware development".
  • Just follow the guide book!
  • 8086 manual
  • If you're very beginner 8086 is also very good guide for processor architecture and 80x86 assembly
  • 80386 manual
  • Best guide for protected mode and paging machanism of 80x86 processor
  • Web version: https://pdos.csail.mit.edu/6.828/2011/readings/i386/toc.htm

Now you would be good to start ARM chipset.

Raspberry Pi board has Cortex-A53 Processor that supports 64bit instruction set. So you can experience the latest processor architecture with rPi. Yes, you can buy it...but...what are you going to do with it? In fact you have already the latest processor and the latest hardware devices. Your laptop! Your desktop! You already have all to start!

So I recommend one project for you.

You don't need to buy anything. The qemu emulator can emulate the latest ARM processors and Intel processors. So everything is already on your hand. There are so many toy projects you can consult. Just install qemu emulator and make tiny kernel that just boot and turn on paging and print some messages.

I've made a toy kernel that supports 64bit long mode, paging and very simple context switching. Making a toy kernel is good way to understand modern computer architecture and hardware control.

Other toy kernel

Linux kernel and device driver

You don't need to make a complete operating system. Join the Linux community and participate in development.

Read carefully

References

Check when you need something