         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %externalintegermapspec fred
     3    %integer joe
     4  
     5    joe = fred
 0004 E8 6E 00                              CALL 'FRED' (EXTERN 110)
 0007 8B 00                                 MOV %EAX,[%EAX]
 0009 89 45 F8                              MOV [%EBP-8],%EAX
     6  
     7    joe = fred + 1  ;! map used in expression is not dereferenced properly!  WHY???
 000C E8 6E 00                              CALL 'FRED' (EXTERN 110)
 000F 8B 00                                 MOV %EAX,[%EAX]
 0011 40                                    INC %EAX
 0012 89 45 F8                              MOV [%EBP-8],%EAX
     8  
     9  %endofprogram
 0015 C9                                    LEAVE
 0016 C3                                    RET

     6 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test72.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       11 |        4 |        7 |      27 |       0 |      32 |         59 |
 +----------+----------+----------+---------+---------+---------+------------+


