         Edinburgh IMP77 Compiler - Version 8.4
    1 ! A test of dynamic loading!  (not yet implemented.  See dltest.c for the mechanism.)
				.section	".text"
		.Ltext0:
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
    2 %begin
				.register	%g2, #scratch
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -704, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    3   %dynamic %routine %spec system(%longinteger pointer64)
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
    4   ! By making this dynamic, it is linked *at run time*
    5
    6   %string (255) command = "/bin/ls -la"
    7
    8   charno(command, length(command)+1) = 0
				ldub	[%fp+1527], %g1
				add	%fp, 2047, %g2
				add	%g2, %g1, %g1
				stb	%g0, [%g1-519]
				call	SYSTEM, 0
				 add	%fp, 1528, %o0
		.LVL4:
		.LBB12:
		.LBB13:
				call	exit, 0
				 mov	0, %o0
		.LVL5:
		.LBE13:
		.LBE12:
				nop
		.LFE185:
		.Letext0:
    9   system(ADDR(command)+1)
				mov	255, %o2
				add	%fp, 1783, %o1
				call	_imp_strncpy, 0
				 add	%fp, 1527, %o0
		.LVL3:
   10
   11 %endofprogram
    6 Statements compiled
