         Edinburgh IMP77 Compiler - Version 8.4
    1   %externalroutine nested for backtrace test
		.Ltext0:
		FRED.6022:
		.LFB190:
				pushl	%ebp
				movl	%esp, %ebp
				subl	$24, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%gs:20, %eax
				movl	%eax, -12(%ebp)
				xorl	%eax, %eax
				leal	8(%ebp), %eax
				movl	%eax, -20(%ebp)
    2     %owninteger anything = 1234
    3
    4     %routine fred(%integer n)
				pushl	%ebp
				movl	%esp, %ebp
				subl	$20, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%ecx, -20(%ebp)
    5       %integer x, y
    6       x = y + n
				movl	-8(%ebp), %edx
				movl	8(%ebp), %eax
				addl	%edx, %eax
				movl	%eax, -4(%ebp)
    7     %end
				nop
				leave
				ret
		.LFE190:
				.globl	NESTEDFORBACKTRACETEST
		NESTEDFORBACKTRACETEST:
		.LFB189:
    8
    9     %integerfn jim
				pushl	%ebp
				movl	%esp, %ebp
				subl	$4, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	%ecx, %eax
				movl	%ecx, -4(%ebp)
   10       fred(3)
				pushl	$3
				movl	%eax, %ecx
				call	FRED.6022
				addl	$4, %esp
   11       %result = 42
				movl	$42, %eax
   12     %end
				leave
				ret
		.LFE191:
				.globl	TOPLEVEL
		TOPLEVEL:
		.LFB192:
   13
   14     %integer q
   15
   16     q = jim
				leal	-20(%ebp), %eax
				movl	%eax, %ecx
				call	JIM.6027
				movl	%eax, -16(%ebp)
   17   %end
				nop
				movl	-12(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L5
				call	__stack_chk_fail_local
		.L5:
				leave
				ret
		.LFE189:
		JIM.6027:
		.LFB191:
?ANYTHING unused
   18
   19 %externalroutine top level(%integer random number)
				pushl	%ebp
				movl	%esp, %ebp
				subl	$24, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
   20   %integer blech
   21
   22   blech = 42 + random number
				movl	8(%ebp), %eax
				addl	$42, %eax
				movl	%eax, -12(%ebp)
   23
   24   nested for backtrace test
				call	NESTEDFORBACKTRACETEST
   25 %end
				nop
				leave
				ret
		.LFE192:
				.globl	main
		main:
		.LFB193:
   26
   27 %begin
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				pushl	%ecx
				subl	$16, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				subl	$8, %esp
				pushl	4(%eax)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
   28
   29 top level(17)
				subl	$12, %esp
				pushl	$17
				call	TOPLEVEL
				addl	$16, %esp
				movl	$0, -12(%ebp)
		.LBB4:
		.LBB5:
				subl	$12, %esp
				pushl	-12(%ebp)
				call	exit@PLT
		.LBE5:
		.LBE4:
		.LFE193:
				.data
				.align 4
		ANYTHING.6020:
				.long	1234
				.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
				.globl	__x86.get_pc_thunk.ax
				.hidden	__x86.get_pc_thunk.ax
		__x86.get_pc_thunk.ax:
		.LFB194:
				movl	(%esp), %eax
				ret
		.LFE194:
				.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:
		.LFB195:
				movl	(%esp), %ebx
				ret
		.LFE195:
		.Letext0:
   30
   31 %endofprogram
   21 Statements compiled
