Developer's corner
Collection of ideas and implementation informations.
Ideas
- Use memory mapping ("mmap") to speedup reading of source files
- Consider to separate scaner from parser by protected queue and run scaner in separate thread. Consider to run parser in separate thread for distinct Ada files
- Use dominator tree numbering to fast check X in T'Class
- Save parsing result tree as binary piece of memory into a file and load it instead of reparse next time.
- To seamlessly integrate Ada with C/TDF use:
type FILE_PTR; pragma Import (TDF, FILE_PTR, "ansi.stdio.FILE");
Tricks
Way to Go
Some Ada constructions and features are complex and their runtime support is not trivial. We gather list of such things to collect ideas how to implement them. If you have ideas how to implement these well, feel free to advice us.