         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	$380, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -380(%ebp)
				movl	%gs:20, %edi
				movl	%edi, -28(%ebp)
				xorl	%edi, %edi
				subl	$8, %esp
				pushl	-380(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2
    3   ! Interestingly enough you *can* initialise records in Imp77, but
    4   ! although it *looks* like an integer is being assigned to the first
    5   ! field, I believe it is actually assigning an address and may be
    6   ! related to the special case of assigning 0 to a record.
    7
    8   ! It would be really interesting to see what happens on a traditional
    9   ! imp77 compiler implementation.  I may try this in the Vax emulator.
   10
   11   %recordformat same(%integer i, j)
   12   %ownrecord(same)%array or(0:3) = 42, 3, 17, 11
				leal	-300(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	OR.6028@GOTOFF(%ebx), %eax
				movl	%eax, -300(%ebp)
				movl	$8, -296(%ebp)
   13   %constrecord(same)%array cr(0:3) = 142, 13, 117, 111
				movl	$0, %ecx
				movl	$32, %eax
				andl	$-4, %eax
				movl	%eax, %edx
				movl	$0, %eax
		.L2:
				movl	%ecx, -364(%ebp,%eax)
				addl	$4, %eax
				cmpl	%edx, %eax
				jb	.L2
				movl	$142, -364(%ebp)
				movl	$13, -360(%ebp)
				movl	$117, -356(%ebp)
				movl	$111, -352(%ebp)
				leal	-232(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-364(%ebp), %eax
				movl	%eax, -232(%ebp)
				movl	$8, -228(%ebp)
   14
   15   %recordformat mixed(%real r, %integer i)
   16 ! %ownrecord(mixed)%array orm(0:3) = 42, 3.1415, 17, 2.123
   17 !                                        ^ causes an error.  This is a significant clue.
   18   %ownrecord(same)%array orm2(0:3) = 42, 3, 17, 11
				leal	-164(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	ORM2.6039@GOTOFF(%ebx), %eax
				movl	%eax, -164(%ebp)
				movl	$8, -160(%ebp)
   19   %constrecord(same)%array cr2(0:3) = 142, 13, 117, 111
				movl	$0, %ecx
				movl	$32, %eax
				andl	$-4, %eax
				movl	%eax, %edx
				movl	$0, %eax
		.L4:
				movl	%ecx, -332(%ebp,%eax)
				addl	$4, %eax
				cmpl	%edx, %eax
				jb	.L4
				movl	$142, -332(%ebp)
				movl	$13, -328(%ebp)
				movl	$117, -324(%ebp)
				movl	$111, -320(%ebp)
				leal	-96(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-332(%ebp), %eax
				movl	%eax, -96(%ebp)
				movl	$8, -92(%ebp)
				movl	$0, -368(%ebp)
		.LBB4:
		.LBB5:
				subl	$12, %esp
				pushl	-368(%ebp)
				call	exit@PLT
		.LBE5:
		.LBE4:
		.LFE189:
				.data
				.align 32
		OR.6028:
				.long	42
				.long	3
				.long	17
				.long	11
				.zero	16
				.align 32
		ORM2.6039:
				.long	42
				.long	3
				.long	17
				.long	11
				.zero	16
				.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:
   20
   21 %endofprogram
?CR2 unused
    0 nused
?MIXED unused
?CR unused
?OR unused
    8 Statements compiled
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%ebx
				pushl	%ecx
				subl	$380, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -380(%ebp)
				movl	%gs:20, %edi
				movl	%edi, -28(%ebp)
				xorl	%edi, %edi
				subl	$8, %esp
				pushl	-380(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
				leal	-300(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	OR.6028@GOTOFF(%ebx), %eax
				movl	%eax, -300(%ebp)
				movl	$8, -296(%ebp)
				movl	$0, %ecx
				movl	$32, %eax
				andl	$-4, %eax
				movl	%eax, %edx
				movl	$0, %eax
		.L2:
				movl	%ecx, -364(%ebp,%eax)
				addl	$4, %eax
				cmpl	%edx, %eax
				jb	.L2
				movl	$142, -364(%ebp)
				movl	$13, -360(%ebp)
				movl	$117, -356(%ebp)
				movl	$111, -352(%ebp)
				leal	-232(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-364(%ebp), %eax
				movl	%eax, -232(%ebp)
				movl	$8, -228(%ebp)
				leal	-164(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	ORM2.6039@GOTOFF(%ebx), %eax
				movl	%eax, -164(%ebp)
				movl	$8, -160(%ebp)
				movl	$0, %ecx
				movl	$32, %eax
				andl	$-4, %eax
				movl	%eax, %edx
				movl	$0, %eax
		.L4:
				movl	%ecx, -332(%ebp,%eax)
				addl	$4, %eax
				cmpl	%edx, %eax
				jb	.L4
				movl	$142, -332(%ebp)
				movl	$13, -328(%ebp)
				movl	$117, -324(%ebp)
				movl	$111, -320(%ebp)
				leal	-96(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-332(%ebp), %eax
				movl	%eax, -96(%ebp)
				movl	$8, -92(%ebp)
				movl	$0, -368(%ebp)
		.LBB4:
		.LBB5:
				subl	$12, %esp
				pushl	-368(%ebp)
				call	exit@PLT
		.LBE5:
		.LBE4:
		.LFE189:
				.data
				.align 32
		OR.6028:
				.long	42
				.long	3
				.long	17
				.long	11
				.zero	16
				.align 32
		ORM2.6039:
				.long	42
				.long	3
				.long	17
				.long	11
				.zero	16
				.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:
