Operating Systems 2026F Lecture 3

From Soma-notes
Revision as of 16:04, 18 September 2026 by Soma (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Video

Video from the lectures given on September 17th, 2026 is now available.

There was no lecture on September 18th.

Notes

Lecture 3A
----------

Processes
 - informally it is a running program

On computers today, memory is byte addressible
 - byte is 8 bits, so a value between 0 and 255 (256 values)
 - memory is just an array of bytes


Machine code (binary code) vs assembly code?
 - assembly code is a human readable form of machine code
 - note it is processor specific
   - x86-64
   - arm64
   - and many others

Assemblers convert text to machine code
Disassemblers covert machine code to text

When you program in assembly, there are no data structures. There is no difference between code and data.

Code

#include <stdio.h>

int main(int argc, char *argv[])
{
        printf("Hello %s how are you?\n", argv[1]);

        return 0;
}