This commit is contained in:
Kartik Agaram 2019-06-28 18:24:44 -07:00
parent 8e9fde4210
commit aa09f29419
2 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ $main:end:
# data structure:
# table: (address stream {string, (address stream byte)}) (8 bytes per row)
# inefficient; uses sequential search for looking up segments by name
convert: # in : (address buffered-file), out : (address buffered-file) -> <void>
# pseudocode:
@ -433,6 +434,7 @@ test-convert:
5d/pop-to-EBP
c3/return
# beware: leaks memory (one name per segment read)
read-segments: # in : (address buffered-file), table : (address stream {string, (address stream byte)})
# pseudocode:
# var curr-segment = null

View File

@ -106,6 +106,7 @@ $main:end:
# segments: (address stream {string, segment-info}) (16 bytes per row)
# label-info: {segment-name, segment-offset, address} (12 bytes)
# labels: (address stream {string, label-info}) (16 bytes per row)
# these are all inefficient; use sequential scans for lookups
convert: # in : (address buffered-file), out : (address buffered-file) -> <void>
# pseudocode