         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.globl	main
		main:
		.LFB189:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%ebx
				pushl	%ecx
				subl	$172, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -172(%ebp)
				movl	%gs:20, %edi
				movl	%edi, -28(%ebp)
				xorl	%edi, %edi
				subl	$8, %esp
				pushl	-172(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   ! This shows that the icode does not distinguish the two declarations,
    3   ! and the initialisation relies on finding the declaration on the stack.
    4   ! I suspect we can get by with having a single flex array for the
    5   ! current declarations initial values.
    6   !
    7   ! When we pop the stack at codegen time, we'll either hit an INIT
    8   ! first (at which point we save them up, in reverse order) or
    9   ! we hit the $DEF and there's no initialisation needed.
   10
   11   %ownintegerarray one(0:3)
				leal	-164(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	ONE.6021@GOTOFF(%ebx), %eax
				movl	%eax, -164(%ebp)
				movl	$4, -160(%ebp)
   12
   13   %ownintegerarray two(0:3) = 1, 2, 3, 4
				leal	-96(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	TWO.6023@GOTOFF(%ebx), %eax
				movl	%eax, -96(%ebp)
				movl	$4, -92(%ebp)
   14
   15   one(2) = two(1)
				movl	4+TWO.6023@GOTOFF(%ebx), %eax
				movl	%eax, 8+ONE.6021@GOTOFF(%ebx)
				movl	$0, -168(%ebp)
		.LBB4:
		.LBB5:
				subl	$12, %esp
				pushl	-168(%ebp)
				call	exit@PLT
		.LBE5:
		.LBE4:
		.LFE189:
				.comm	ONE.6021,16,4
				.data
				.align 4
		TWO.6023:
				.long	1
				.long	2
				.long	3
				.long	4
				.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:
		.LFB190:
				movl	(%esp), %ebx
				ret
		.LFE190:
		.Letext0:
   16
   17 %endofprogram
    5 Statements compiled
