         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %externalroutine fred
 0000                      L1000  EQU $
 0000 C8 00 00 01                           ENTER 0000,1
     2    %integer i
     3    i = 1
 0004 C7 45 F8 01 00 00 00                  MOV DWORD PTR [%EBP-8],#1
     4    i = i+i
 000B 8B 45 F8                              MOV %EAX,[%EBP-8]
 000E 01 45 F8                              ADD [%EBP-8],%EAX
     5  %end
 0011 C9                                    LEAVE
 0012 C3                                    RET
     6  %externalroutine fred2(%integer param)
     7    %integer i
 0013                      L1001  EQU $
 0013 C8 00 00 01                           ENTER 0000,1
     8    i = 1
 0017 C7 45 F8 01 00 00 00                  MOV DWORD PTR [%EBP-8],#1
     9    i = i+param
 001E 8B 45 08                              MOV %EAX,[%EBP+8]
 0021 01 45 F8                              ADD [%EBP-8],%EAX
    10  %end
 0024 C9                                    LEAVE
 0025 C3                                    RET
    11  %endoffile

    11 Statements compiled



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


