         Edinburgh IMP77 Compiler - Version 8.4
    1 ! check that sizeof/typeof was giving the expected value
		.Ltext0:
				.align	1
				.thumb
				.thumb_func
		TEST.10026:
		.LFB186:
    2 %begin
				@ Volatile: function does not return.
				@ args = 0, pretend = 0, frame = 1128
				@ frame_needed = 0, uses_anonymous_args = 0
		.LVL7:
				push	{r7, lr}
				sub	sp, sp, #1368
				ldr	r3, .L6
		.LPIC0:
				add	r3, pc
				ldr	r2, .L6+4
				ldr	r3, [r3, r2]
				ldr	r3, [r3]
				str	r3, [sp, #1364]
    3   %routine test(%name param)         ;! ia1          ia2
				@ args = 0, pretend = 0, frame = 0
				@ frame_needed = 0, uses_anonymous_args = 0
		.LVL0:
				push	{r3, lr}
				bl	_imp_initialise(PLT)
		.LVL8:
		.LBB52:
    4     write(addr(param),0)  ; newline  ;! 2145833816   2145833816
				movs	r1, #0
				bl	_imp_writeint(PLT)
		.LVL1:
		.LBB46:
		.LBB47:
				bl	_imp_newline(PLT)
		.LVL2:
		.LBE47:
		.LBE46:
    5     write(sizeof(param),0); newline  ;! 1            8             1 is sizeof %byte, 8 is sizeof %longreal
				movs	r1, #0
				movs	r0, #12
				bl	_imp_writeint(PLT)
		.LVL3:
		.LBB48:
		.LBB49:
				bl	_imp_newline(PLT)
		.LVL4:
		.LBE49:
		.LBE48:
    6     write(typeof(param),0); newline  ;! 5            8             5 is typeof %byte, 8 is typeof %longreal
				movs	r1, #0
				movs	r0, #4
				bl	_imp_writeint(PLT)
		.LVL5:
		.LBB50:
		.LBB51:
				bl	_imp_newline(PLT)
		.LVL6:
		.LBE51:
		.LBE50:
    7   %end
    8
				pop	{r3, pc}
		.LFE186:
				.align	1
				.global	main
				.thumb
				.thumb_func
		main:
		.LFB185:
    9   %bytearray ia1(3:5)
   10   %longrealarray ia2(2:4,3:6)
   11
   12   printstring( "Testing ia1"); newline
				ldr	r6, .L6+8
		.LPIC1:
				add	r6, pc
				mov	r5, #256
				mov	r2, r5
				mov	r1, r6
				add	r4, sp, #1104
				mov	r0, r4
				bl	memcpy(PLT)
		.LVL9:
				mov	r2, r5
				mov	r1, r4
				add	r7, sp, #336
				mov	r0, r7
				bl	memcpy(PLT)
		.LVL10:
				mov	r2, r5
				mov	r1, r7
				mov	r0, r4
				bl	memcpy(PLT)
		.LVL11:
		.LBE52:
		.LBB53:
		.LBB54:
				movs	r7, #240
				mov	r2, r7
				add	r1, sp, #1120
				mov	r0, sp
				bl	memcpy(PLT)
		.LVL12:
				ldm	r4, {r0, r1, r2, r3}
				bl	_imp_printstring(PLT)
		.LVL13:
		.LBE54:
		.LBE53:
		.LBB55:
		.LBB56:
				bl	_imp_newline(PLT)
		.LVL14:
		.LBE56:
		.LBE55:
   13   write(addr(ia1),0); newline     ;! 2145833816
				movs	r1, #0
				add	r4, sp, #1360
				mov	r0, r4
				bl	_imp_writeint(PLT)
		.LVL15:
		.LBB57:
		.LBB58:
				bl	_imp_newline(PLT)
		.LVL16:
		.LBE58:
		.LBE57:
   14   write(addr(ia1(3)),0); newline  ;! 2145833704
				movs	r1, #0
				mov	r0, r4
				bl	_imp_writeint(PLT)
		.LVL17:
		.LBB59:
		.LBB60:
				bl	_imp_newline(PLT)
		.LVL18:
		.LBE60:
		.LBE59:
   15   write(sizeof(ia1),0); newline   ;! 1                sizeof %btre
				movs	r1, #0
				movs	r0, #1
				bl	_imp_writeint(PLT)
		.LVL19:
		.LBB61:
		.LBB62:
				bl	_imp_newline(PLT)
		.LVL20:
		.LBE62:
		.LBE61:
   16   write(typeof(ia1),0); newline   ;! 5                typeof %byte
				movs	r1, #0
				movs	r0, #5
				bl	_imp_writeint(PLT)
		.LVL21:
		.LBB63:
		.LBB64:
				bl	_imp_newline(PLT)
		.LVL22:
		.LBE64:
		.LBE63:
   17   test(ia1)
				mov	r0, r4
				bl	TEST.10026(PLT)
		.LVL23:
		.LBB65:
   18
   19   printstring( "Testing ia2"); newline
				mov	r2, r5
				adds	r1, r6, r5
				add	r4, sp, #848
				mov	r0, r4
				bl	memcpy(PLT)
		.LVL24:
				mov	r2, r5
				mov	r1, r4
				add	r6, sp, #592
				mov	r0, r6
				bl	memcpy(PLT)
		.LVL25:
				mov	r2, r5
				mov	r1, r6
				mov	r0, r4
				bl	memcpy(PLT)
		.LVL26:
		.LBE65:
		.LBB66:
		.LBB67:
				mov	r2, r7
				add	r1, sp, #864
				mov	r0, sp
				bl	memcpy(PLT)
		.LVL27:
				ldm	r4, {r0, r1, r2, r3}
				bl	_imp_printstring(PLT)
		.LVL28:
		.LBE67:
		.LBE66:
		.LBB68:
		.LBB69:
				bl	_imp_newline(PLT)
		.LVL29:
		.LBE69:
		.LBE68:
   20   write(addr(ia2),0); newline      ;! 2145833816
				movs	r1, #0
				add	r4, sp, r7
				mov	r0, r4
				bl	_imp_writeint(PLT)
		.LVL30:
		.LBB70:
		.LBB71:
				bl	_imp_newline(PLT)
		.LVL31:
		.LBE71:
		.LBE70:
   21   write(addr(ia2(2,3)),0); newline ;! 2145833708      4 bytes after address of first element of ia1, i.e. ia1(3)
				movs	r1, #0
				mov	r0, r4
				bl	_imp_writeint(PLT)
		.LVL32:
		.LBB72:
		.LBB73:
				bl	_imp_newline(PLT)
		.LVL33:
		.LBE73:
		.LBE72:
   22                                     !                 which is 3 %byteinteger elements of 1 byte each, aligned to next 4 bytes.
   23   write(sizeof(ia2),0); newline    ;! 8               sizeof %longreal
				movs	r1, #0
				movs	r0, #32
				bl	_imp_writeint(PLT)
		.LVL34:
		.LBB74:
		.LBB75:
				bl	_imp_newline(PLT)
		.LVL35:
		.LBE75:
		.LBE74:
   24   write(typeof(ia2),0); newline    ;! 8               typeof %longreal
				movs	r1, #0
				movs	r0, #4
				bl	_imp_writeint(PLT)
		.LVL36:
		.LBB76:
		.LBB77:
				bl	_imp_newline(PLT)
		.LVL37:
		.LBE77:
		.LBE76:
   25   test(ia2)
				mov	r0, r4
				bl	TEST.10026(PLT)
		.LVL38:
		.LBB78:
		.LBB79:
				movs	r0, #0
				bl	exit(PLT)
		.LVL39:
		.L7:
				.align	2
		.L6:
				.word	_GLOBAL_OFFSET_TABLE_-(.LPIC0+4)
				.word	__stack_chk_guard(GOT)
				.word	.LANCHOR0-(.LPIC1+4)
		.LBE79:
		.LBE78:
		.LFE185:
				.section	.rodata
				.align	2
				.set	.LANCHOR0,. + 0
		.LC0:
				.byte	11
				.ascii	"Testing ia1\000"
				.space	243
		.LC1:
				.byte	11
				.ascii	"Testing ia2\000"
				.space	243
		.Letext0:
   26
   27 %endofprogram
   34 Statements compiled
