





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Languages Syntax: what’s in the language Semantics: what the language means Model: what the language manipulates Specification asks for something Modeling asks what something will do Concurrency Nondeterminism
Built from two pieces
Each operand taken from a particular addressing mode: Examples: Register add r1, r2, r Immediate add r1, r2, 10 Indirect mov r1, (r2) Offset mov r1, 10(r3) PC Relative beq 100
Reflect processor data pathways
Assembly language closely tied to processor architecture At least four main types:
CISC: Complex Instruction-Set Computer RISC: Reduced Instruction-Set Computer DSP: Digital Signal Processor VLIW: Very Long Instruction Word
Response to growing use of compilers Easier-to-target, uniform instruction sets “Make the most common operations as fast as possible”
Load-store architecture: Arithmetic only performed on registers Memory load/store instructions for memory-register transfers
Designed to be pipelined
Digital signal processors designed specifically for signal processing algorithms Lots of regular arithmetic on vectors Often written by hand
Irregular architectures to save power, area
Substantial instruction-level parallelism
Woolworth building
Cass Gilbert, 1913
Application of the Gothic style to a 792’ skyscraper
Tallest building in the world when it was constructed
Downtown: near City Hall
jmp .L .p2align 4,, .L4: movl %ecx,%eax movl %ebx,%ecx .L6: cltd idivl %ecx movl %edx,%ebx testl %edx,%edx jne .L movl %ecx,%eax movl - 4(%ebp),%ebx leave ret
while ((r = m % n) != 0) { m = n; n = r; } return n;
jmp .L .p2align 4,, .L4: movl %ecx,%eax movl %ebx,%ecx .L6: cltd idivl %ecx movl %edx,%ebx testl %edx,%edx jne .L movl %ecx,%eax movl - 4(%ebp),%ebx leave ret
while ((r = m % n) != 0) { m = n; n = r; } return n;