This commit is contained in:
Nicolas Kruse 2025-10-12 23:23:47 +02:00
parent 3313e2d999
commit 3d80fa43d6
1 changed files with 5 additions and 1 deletions

View File

@ -396,8 +396,12 @@ def compile_to_instruction_list(node_list: Iterable[Node], sdb: stencil_database
dw.write_com(binw.Command.COPY_CODE) dw.write_com(binw.Command.COPY_CODE)
dw.write_int(0) dw.write_int(0)
dw.write_int(aux_function_lengths) dw.write_int(aux_function_lengths)
idat: int = 0
for name, _, _ in aux_function_mem_layout: for name, _, _ in aux_function_mem_layout:
dw.write_bytes(sdb.get_function_code(name)) dat = sdb.get_function_code(name)
dw.write_bytes(dat)
idat += len(dat)
assert idat == aux_function_lengths
# Prepare program code and relocations # Prepare program code and relocations
object_addr_lookup = {net: offs for net, offs, _ in variable_mem_layout} object_addr_lookup = {net: offs for net, offs, _ in variable_mem_layout}