         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %integer         i,i2
     3  
     4    %integermap      im
 0004 EB 00                                 JMP L1001
 0006                      L1002  EQU $
 0006 C8 00 00 02                           ENTER 0000,2
     5      %result ==  i2
 000A 8B 75 FC                              MOV %ESI,[%EBP-4]
 000D 8D 46 F4                              LEA %EAX,[%ESI-12]
 0010 C9                                    LEAVE
 0011 C3                                    RET
     6    %end
 0012                      L1001  EQU $
     7  
     8    i = im
 0012 E8 00 00                              CALL 'IM' (INTERNAL L1002 )
 0015 8B 00                                 MOV %EAX,[%EAX]
 0017 89 45 F8                              MOV [%EBP-8],%EAX
     9    %comment i = im(1) ... should be i = *im()
    10  
    11  %endofprogram
 001A C9                                    LEAVE
 001B C3                                    RET

     7 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test60.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       11 |        5 |        6 |      30 |       0 |      64 |         94 |
 +----------+----------+----------+---------+---------+---------+------------+


