         Edinburgh IMP77 Compiler - Version 8.4
    1 %externalroutine whatever(%integer x)
				NO_APP
		.Ltext0:
				.align	2
				.globl	WHATEVER
		WHATEVER:
		.LFB185:
		.LVL0:
		 		link.w %fp,#0
    2 %end
?X unused
    3
		 		unlk %fp
		 		rts
		.LFE185:
				.align	2
				.globl	XR1
		XR1:
		.LFB186:
    4 %externalroutine xr1(%routine fred(%integer p2))
		.LVL1:
		 		link.w %fp,#0
    5   %real r1
    6 %end
?R1 unused
?FRED unused
    7
		 		unlk %fp
		 		rts
		.LFE186:
				.align	2
				.globl	XM1
		XM1:
		.LFB187:
    8 ! Should translate to:
    9
   10 ! void xr1(void (*fred)(int p2)) {
   11 !   float r1;
   12 ! }
   13
   14
   15 %externalintegermap xm1(%routine fred(%integer p2))
   16   %owninteger oi1
		.LVL2:
		 		link.w %fp,#0
   17   %result == oi1
		 		move.l #OI1.5994,%d0
   18 %end
		 		move.l %d0,%a0
		 		unlk %fp
		 		rts
		.LFE187:
				.align	2
				.globl	main
		main:
		.LFB188:
?FRED unused
   19
   20 ! Should translate to:
   21
   22 ! int *xm1(void (*fred)(int p2)) {
   23 !   static int oi1;
   24 !   return &oi1;
   25 ! }
   26
   27 %begin
		.LVL3:
		 		link.w %fp,#0
   28   %integer i           ;! int I;
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL4:
		.LBB4:
		.LBB5:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL5:
		.LBE5:
		.LBE4:
		.LFE188:
				.comm	OI1.5994,4,2
		.Letext0:
   29   %integername zz      ;! int *ZZ;
   30   zz == xm1(whatever)  ;! ZZ = XM1(&whatever);
   31   i = zz               ;! I = *ZZ;
   32 %end
   33
   34 %endoffile
   16 Statements compiled
