I'm developing custom language, and everything works good, but I stopped at adding support of standard functions, like getchar(), fopen(), etc. One of my ideas is to parse visual .lib files, but it's massive task (e.g. because of lacks in specification). Do you have other ideas? How it's made in language like D?
EDIT: What I want to achieve, is to be able to use system features (e.g. opening files, using sockets), but without need to write it from the scratch. I need some way to access libs/dlls already written.
The simplest solution would be to load e.g. C standard library and make calls to these functions (setting up stack before), but I need to have some way to get this code (assembled).