News for hackers. Stuff that matters.
Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by openasocket on Friday February 02, 2018 @03:05PM (#16293779)
I've always wondered if there's a way to do this without needing the header files. Like by parsing the debug information. Obviously, this means you need there to be debug information, but that always struck me as a cleaner solution.
Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by emmelaich on Friday February 02, 2018 @08:01PM (#16295485)
Me too. Surely it would be faster and more portable to put function signatures within the binary lib. No more parsing of source needed.

If you only added the signatures and not all the debug stuff the overhead would be pretty small.

Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by aguinet on Saturday February 03, 2018 @11:01AM (#16298090)
This is actually a pretty funny/nice idea, and could be possible with the actual design!

Using debug info also make the whole thing potentially usable with other languages that emits functions with the good ABI and DWARF informations.

Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by chatmasta on Saturday February 03, 2018 @05:06AM (#16296991)
This should be possible as long as the binary is compiled with its symbol table intact.