         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
		HANDLEARRAY.6028:
		.LFB190:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				pushl	%ecx
				subl	$80, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -76(%ebp)
				movl	%gs:20, %ecx
				movl	%ecx, -12(%ebp)
				xorl	%ecx, %ecx
				leal	8(%ebp), %edx
				movl	%edx, -60(%ebp)
				subl	$8, %esp
				pushl	-76(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   %recordformat arrfm(%integer %array test(0:9))
    3
    4   %routine handle array(%record (arrfm) rec)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				subl	$20, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%ecx, -12(%ebp)
    5     ! A %array is not allowed, only a %array %name ...
    6     write(rec_test(5), 0)
				movl	28(%ebp), %edx
				subl	$8, %esp
				pushl	$0
				pushl	%edx
				movl	%eax, %ebx
				call	_imp_writeint@PLT
				addl	$16, %esp
    7   %end
				nop
				movl	-4(%ebp), %ebx
				leave
				ret
		.LFE190:
				.globl	main
		main:
		.LFB189:
    8
    9   %record (arrfm) small
   10
   11   small_test(5) = 42
				movl	$42, -32(%ebp)
   12   handle array(small)
				subl	$8, %esp
				leal	-60(%ebp), %eax
				pushl	-16(%ebp)
				pushl	-20(%ebp)
				pushl	-24(%ebp)
				pushl	-28(%ebp)
				pushl	-32(%ebp)
				pushl	-36(%ebp)
				pushl	-40(%ebp)
				pushl	-44(%ebp)
				pushl	-48(%ebp)
				pushl	-52(%ebp)
				movl	%eax, %ecx
				call	HANDLEARRAY.6028
				addl	$48, %esp
				movl	$0, -56(%ebp)
		.LBB4:
		.LBB5:
				subl	$12, %esp
				pushl	-56(%ebp)
				call	exit@PLT
		.LBE5:
		.LBE4:
		.LFE189:
				.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
				.globl	__x86.get_pc_thunk.ax
				.hidden	__x86.get_pc_thunk.ax
		__x86.get_pc_thunk.ax:
		.LFB191:
				movl	(%esp), %eax
				ret
		.LFE191:
				.section	.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
				.globl	__x86.get_pc_thunk.bx
				.hidden	__x86.get_pc_thunk.bx
		__x86.get_pc_thunk.bx:
		.LFB192:
				movl	(%esp), %ebx
				ret
		.LFE192:
		.Letext0:
   13
   14 %endofprogram
    9 Statements compiled
