         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.align	2
				.global	main
		main:
		.LFB185:
		.LVL0:
				stp	x29, x30, [sp, -16]!
				add	x29, sp, 0
    2
				bl	_imp_initialise
		.LVL1:
		.LBB4:
		.LBB5:
				mov	w0, 0
				bl	exit
		.LVL2:
		.LBE5:
		.LBE4:
		.LFE185:
		.Letext0:
    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
   13   %constrecord(same)%array cr(0:3) = 142, 13, 117, 111
   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
   19   %constrecord(same)%array cr2(0:3) = 142, 13, 117, 111
   20
   21 %endofprogram
?CR2 unused
    0 nused
?MIXED unused
?CR unused
?OR unused
    8 Statements compiled
		.LVL0:
				stp	x29, x30, [sp, -16]!
				add	x29, sp, 0
				bl	_imp_initialise
		.LVL1:
		.LBB4:
		.LBB5:
				mov	w0, 0
				bl	exit
		.LVL2:
		.LBE5:
		.LBE4:
		.LFE185:
		.Letext0:
