         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2      %integer i
     3      ! Imp allows the declaration below even if this is absent: %recordformatspec rf
     4      %recordformat rf(%record (rf) %name next, %integer i)
     5      %record (rf) rec
     6      %record (rf) %name %array rna(0:10)
 0004 C7 45 E0 01 00 00 00                  MOV DWORD PTR [%EBP-32],#1
 000B C7 45 E4 00 00 00 00                  MOV DWORD PTR [%EBP-28],#0
 0012 C7 45 E8 0A 00 00 00                  MOV DWORD PTR [%EBP-24],#10
 0019 C7 45 EC 89 00 00 00                  MOV DWORD PTR [%EBP-20],#137
 0020 8D 45 E0                              LEA %EAX,[%EBP-32]
 0023 50                                    PUSH %EAX
 0024 E8 0A 00                              CALL '_IMPADEF' (EXTERN 10)
 0027 83 C4 04                              ADD %ESP,#4
 002A 8D 4D E0                              LEA %ECX,[%EBP-32]
 002D 89 E3                                 MOV %EBX,%ESP
 002F 29 D3                                 SUB %EBX,%EDX
 0031 89 5D D8                              MOV [%EBP-40],%EBX
 0034 89 4D DC                              MOV [%EBP-36],%ECX
 0037 01 C3                                 ADD %EBX,%EAX
 0039 89 DC                                 MOV %ESP,%EBX
     7  
     8      rec = rna(i)
 003B FF 75 F8                              PUSH DWORD PTR [%EBP-8]
 003E FF 75 DC                              PUSH DWORD PTR [%EBP-36]
 0041 E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 0044 83 C4 08                              ADD %ESP,#8
 0047 89 C6                                 MOV %ESI,%EAX
 0049 03 75 D8                              ADD %ESI,[%EBP-40]
 004C 8D 7D F0                              LEA %EDI,[%EBP-16]
 004F B9 08 00 00 00                        MOV %ECX,#8
 0054 8B 36                                 MOV %ESI,[%ESI]
 0056 F3 A4                                 REP MOVSB
     9      rec = rna(i)_next
 0058 FF 75 F8                              PUSH DWORD PTR [%EBP-8]
 005B FF 75 DC                              PUSH DWORD PTR [%EBP-36]
 005E E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 0061 83 C4 08                              ADD %ESP,#8
 0064 89 C7                                 MOV %EDI,%EAX
 0066 03 7D D8                              ADD %EDI,[%EBP-40]
 0069 89 7D D4                              MOV [%EBP-44],%EDI
    10  %endofprogram

     8 Statements compiled



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


