         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC1:
				.byte	20
				.asciz	"Oh boy, this is fun!"
				.skip	234
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -1728, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2   %routine do something(%string(255)%name fred)
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
    3     fred = "Oh boy, this is fun!"
				mov	256, %o2
				sethi	%hi(.LC1), %o1
				or	%o1, %lo(.LC1), %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL4:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL5:
		.LBE24:
				mov	256, %o2
				add	%fp, 1783, %o1
		.LVL6:
				call	memcpy, 0
				 add	%fp, 759, %o0
		.LVL7:
				mov	256, %o2
				add	%fp, 1271, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL8:
		.LBE23:
		.LBE22:
		.LBB25:
		.LBB26:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 495, %o0
		.LVL9:
				call	_imp_printstring, 0
				 add	%fp, 495, %o0
		.LVL10:
		.LBE26:
		.LBE25:
		.LBB27:
		.LBB28:
				call	_imp_newline, 0
				 nop
		.LVL11:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
				call	exit, 0
				 mov	0, %o0
		.LVL12:
		.LBE30:
		.LBE29:
				nop
		.LFE185:
		.Letext0:
    4   %end
    5
    6   %string(255) jim = "Well, that was unexpected"
    7
    8   do something(jim)
    9
				mov	255, %o2
				add	%fp, 1015, %o1
				call	_imp_strncpy, 0
				 add	%fp, 759, %o0
		.LVL3:
		.LBB22:
		.LBB23:
		.LBB24:
   10   printstring(jim); newline
   11
   12 %endofprogram
    9 Statements compiled
