         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC0:
				.byte	6
				.asciz	"Called"
				.skip	248
				.section	".text"
				.align 4
				.proc	04
		SIMPLE.6063:
		.LFB187:
		.LVL9:
				save	%sp, -176, %sp
		.LVL10:
    2   %routine calgol(%longreal c, %integerfn f(%integer p), %integername n)
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL11:
		.LBB18:
		.LBB19:
    3     n = f(n)
				call	SIMPLE.6063, 0
				 mov	3, %o0
		.LVL12:
		.LBE19:
		.LBE18:
		.LBB20:
		.LBB21:
				call	exit, 0
				 mov	0, %o0
		.LVL13:
		.LBE21:
		.LBE20:
				nop
		.LFE185:
		.Letext0:
    4   %end
?C unused
    5   %integerfn simple(%integer param)
				.register	%g2, #scratch
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -960, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
		.LBB9:
    6     printstring("Called"); newline
				mov	256, %o2
				sethi	%hi(.LC0), %o1
				or	%o1, %lo(.LC0), %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL2:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL3:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL4:
		.LBE9:
		.LBB10:
		.LBB11:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1263, %o0
		.LVL5:
				call	_imp_printstring, 0
				 add	%fp, 1263, %o0
		.LVL6:
		.LBE11:
		.LBE10:
		.LBB12:
		.LBB13:
				call	_imp_newline, 0
				 nop
		.LVL7:
		.LBE13:
		.LBE12:
    7     %result = param
    8   %end
				ldx	[%fp+2039], %g1
				ldx	[%g7+40], %g2
				xor	%g1, %g2, %g1
				mov	0, %g2
				brnz,pn	%g1, .L3
				 nop
				return	%i7+8
				 nop
		.L3:
				call	__stack_chk_fail, 0
				 nop
		.LVL8:
				nop
		.LFE187:
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
    9   %longreal a = 1.23
   10   %integer num
   11   num = 3
   12   calgol(a, simple, num)
   13 %endofprogram
   14 Statements compiled
