Categorygithub.com/neilo40/hunk_parser
repository
0.0.0-20240414203324-7ae032163964
Repository: https://github.com/neilo40/hunk_parser.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Hunk parser (and general hunk info)

Aim is to add support for Amiga Hunk format to Clang/LLVM.
we should be able to cross compile for Amiga on any modern computer

The parser is simply an exercise to understand the format but could be used to validate generated hunks

unanswered questions

  • how do reloc hunks actually work? look at the Amigados manual page 371
  • how is the entry point defined? is there a convention?
  • what are external symbols?
  • how are the code/data/bss sections represented by LLVM/Clang?
  • what is the minimum viable support needed?
  • how would we control things like hunk names, chip/fast mem requirements? config file/pragmas?

plan of attack

  • create simple hello world application (no external lib deps)
  • compile and link with sas/c
  • examine hunk output
  • disassemble / decompile code hunk
  • repeat for increasingly complex examples
    • strings / constants
    • variables (inintialized / uninitialized)
    • structs

references