I was a bit late but the lecture begun with a table of assembly commands, grouped by type. Some things were mentioned that aren't very necessery because they are about assembly:
- Machine code → assembly - is called disassembling
- Adressing modes in assembly.
- the sign of a signed variable in mcu's is encoded using U2 - the first bit determines the sign
- logical shift vs arithmetical shifts, arithmetical shifts takes into account the sign, logic treats it as if it was a normal part of the number
- Assembler & Linker (idk what's that about)
- the HEX file format
- ASCII file
- Each line begins with an ASCII ':'
Optimalization
There are levels of optimisation O0, O1, O2,... the O0 is no optimization. The code gets faster and les readable with more optim. Form dr. Budzyń's experiance it's mostly owrt to use the first level O1, because it gives a big benefit when it comes to execution speed, but Assembly is still readable.
The MAP file
A file that is generated by linker, contains additional informations and reporting. Contains information about what code was placed where, what was assigned where and so on.
Microprocessor classifications
- Complex instruction set (CISC) and reduced instruction set (RISC)
- RISC
- even below 30 isntructions
- most instructions in one clock
- only simple instructions
- limited access to memory
- large number of auxiliary registers
- CISC
- Now the split isn't very well defined, because RISC is nice, but better to have afew more than 30 instructions xD
- Split memory map and _____ memory map
- Harward and Van Neuman
- almost everywhere now Harward architecture is used
- SISD vs MISD vs MIMD
- SISD
- single data stream, single instruction
- MISD
- multiple data streams, single instruction
- MIMD
- multicore - multiple data streams, multiple instructions
- Benchmarking
- MIPS - milions of operations per second (was a good idea, but of diferences in architectures)
- Colock rate (bad idea)
- Dhrystone MIPS - artificial benchmark - old one
- CoreMark - artificial benchmark - new one
Lecture 2 - Electrical parameters of microcontrollers