         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %external %integer fred
     2  %external %routine bert(%integer i)
 0000                      L1000  EQU $
 0000 C8 00 00 01                           ENTER 0000,1
     3    fred = i
 0004 8B 45 08                              MOV %EAX,[%EBP+8]
 0007 89 05 00 00 00 00                     MOV [DATA+0000],%EAX
     4  %end
 000D C9                                    LEAVE
 000E C3                                    RET
     5  
     6  
     7  %external %routine shiela(%integer k)
 000F                      L1001  EQU $
 000F C8 00 00 01                           ENTER 0000,1
     8  %own %integer local = 42
     9    k = local
 0013 A1 04 00 00 00                        MOV %EAX,[DATA+0004]
 0018 89 45 08                              MOV [%EBP+8],%EAX
    10    local = local + 1
 001B FF 05 04 00 00 00                     INC DWORD PTR [DATA+0004]
    11  %end
 0021 C9                                    LEAVE
 0022 C3                                    RET
    12  
    13  %begin
 0023 C8 00 00 01                           ENTER 0000,1
    14    bert(22)
 0027 6A 16                                 PUSH #22
 0029 E8 00 00                              CALL 'BERT' (INTERNAL L1000 )
 002C 83 C4 04                              ADD %ESP,#4
    15    shiela(fred)
 002F FF 35 00 00 00 00                     PUSH DWORD PTR [DATA+0000]
 0035 E8 00 00                              CALL 'SHIELA' (INTERNAL L1001 )
 0038 83 C4 04                              ADD %ESP,#4
    16  %end %of %programm
 003B C9                                    LEAVE
 003C C3                                    RET
    13 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/static.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       12 |        7 |        9 |      65 |       8 |      96 |        169 |
 +----------+----------+----------+---------+---------+---------+------------+


