Files
Toooba/Tests/elf_to_hex
Peter Rugg e9c2db4e60 Allocate mem_buf dynamically in elf_to_hex
This hopefully fixes various compile issues due to having a > 2GB global
and also seems to have the size effect of running many times quicker.
2023-10-25 13:35:32 +01:00
..
2019-03-26 14:49:40 -04:00

Copyright (c) 2018 Bluespec, Inc. All Rights Reserved

This standalone C program takes two command-line arguments, and ELF
filename and a Mem Hex filename.  It reads the ELF file and writes out
the Mem Hex file.

It assumes a memory that is:
  - 16 MiB or 256 MiB (see C file)
  - Each word is 32 bytes (256 bits)
  - It starts at byte address 0x_8000_0000

All of these can be changed by editing the C file.