Skip to content

Commit 8d48bdf

Browse files
committed
notes
1 parent 5dce5ed commit 8d48bdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/raddbg/raddbg_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//
1818
// [ ] we keep flat tables of symbols, *but*, "sort" by containing unit. unit -> [f, opl) of procedures, globals, threadvars, constants, etc.
1919
// [ ] container can also be a unit, so you can also go from procedure/global/tvar -> unit
20+
// [ ] *OR*, because we can guarantee that the units themselves will be sorted from lowest -> highest in all symbol tables, we can simply binary search the unit table (small) with a symbol's index to find its corresponding unit. that way, no need to duplicate e.g. namespaces and so on across units. and actually, we have to do this, because containers can be types, and those cannot be unit-locked.
2021
//
2122
// [ ] symbols only store their *partly-qualified name*, e.g. `x` for A::B::C::x
2223
// [ ] default name maps look up *partly-qualified names*

0 commit comments

Comments
 (0)