Get the latest tech news
Psyche-C: automatic compilation of partially-available C programs
The compilation of incomplete C code can be useful in a variety of scenarios: debugging a snippet retrieved from a bug-tracking tool; running an static analysis on only part of a program; supporting code-completion within an IDE; during cross-platform development when a header is incompatible; or to generate data-structures straight out of algorithm implementations. Psyche-c is a compiler for incomplete C code being developed in our lab .
- Ensure the code is valid: start with a compilable program, then gradually strip it off. /* The code commented-out bellow illustrates the missing parts of a program. */ list->data = val; /* List has a member of type `double'.
Or read this on Hacker News