https://github.com/lovasko/libclaf
Compact Line Address Format
https://github.com/lovasko/libclaf
Last synced: 4 months ago
JSON representation
Compact Line Address Format
- Host: GitHub
- URL: https://github.com/lovasko/libclaf
- Owner: lovasko
- Created: 2015-06-13T16:04:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-13T16:10:20.000Z (almost 11 years ago)
- Last Synced: 2025-06-22T18:53:30.368Z (12 months ago)
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compact Line Address Format
Simple mapping from source lines to addresses.
## On-disk format
### Header
```C
uint16_t magic 0xC1AF
uint8_t version
uint8_t memory_model
uint32_t flags
uint32_t comp_unit_sect_offset
uint32_t line_addr_sect_offset
uint32_t string_table_offset
uint32_t string_table_length
```
### Compilation Unit Section
```C
uint32_t comp_unit_id
uint32_t comp_unit_name_idx
uint32_t comp_unit_id
uint32_t comp_unit_name_idx
uint32_t comp_unit_id
.
.
.
```
### Line Section
```C
uint32_t comp_unit_id
uint32_t line_no
uint32_t/uint64_t address
uint32_t comp_unit_id
uint32_t line_no
.
.
.
```
### String Table
NULL-separated list of strings.
## Author
Daniel Lovasko lovasko@freebsd.org