Contributor
Jayitra

Code Refactor


Mentors
Jishu, Avneet
Organization
GNU Project

GNU Libffcall is a collection of four libraries which can be used to build foreign function call interfaces in embedded Interpreters:

Avcall - Calling C functions with variable arguments. Vacall - C functions accepting variable argument prototypes. Trampoline - Closures as first-class C functions. Callback - Closures with variable arguments as first-class C functions (a re-entrant combination of vacall and trampoline).

LibffCall Code is written in C & assembly language and there is no technical documentation regarding it, which makes extremely difficult to understand the code. As there is assembly code for different platforms so there is use of different instruction sets, opcode’s and labels which make it a programmer's nightmare. So there is an immediate need of refactoring the code for helping programmers to understand the code for future reference.