80 likes | 156 Views
I need to pop over to T4 for five minutes to talk to the ICT Class (Miss Card is away) When I come back I will pick on someone to tell the class about fourth generation languages – please be prepared! See you in a minute (Mr Macleod). Compilers, Interpreters and Library modules.
E N D
I need to pop over to T4 for five minutes to talk to the ICT Class (Miss Card is away) • When I come back I will pick on someone to tell the class about fourth generation languages – please be prepared! • See you in a minute (Mr Macleod)
Compiler Turn left Straight on till the lights Right at the pub Up the Hill Second on the Left Can’t miss it Turn left Straight on till the lights Right at the pub Up the Hill Second on the Left Can’t miss it One-off translation
Interpreter Turn left Turn left Straight on till the lights Straight on Right at the pub Right at the Up the hill Up the hill
Library Modules Print(“Hello”) Library Module Print() MOV AX,22 INT 15,AH CMP AH,0 JNE BX Get_Input MOV AL,C2 INT 21, AH CMP CX,0 JE BC Compiler
Static linking Program Start Library Module Print() MOV AX,22 INT 15,AH CMP AH,0 JNE BX Get_Input MOV AL,C2 INT 21, AH CMP CX,0 JE BC Copied Print() MOV AX,22 INT 15,AH CMP AH,0 JNE BX More program
Dynamic linking printlib.dll Program Start Library Module Print() MOV AX,22 INT 15,AH CMP AH,0 JNE BX Get_Input MOV AL,C2 INT 21, AH CMP CX,0 JE BC Get Print routine from library named printlib.dll More program
User Presses a key BIOS Operating System (Windows) Hardware interrupt Hardware interrupt Keyboard Buffer Active Application Result = get_input(“Please press a key”) Dynamic Library