felixangell / kpd

an old compiler for Krug written in D - a prototype version
MIT License
44 stars 1 forks source link

c interop (linking stuff) #58

Closed felixangell closed 6 years ago

felixangell commented 6 years ago

right now we invoke ld ourselves. one thing I want to do is when we have a c_func or something i.e. we need to invoke some stuff from C, we should link with gcc or clang as the frontend to ld. would be cool to do this ourselves in the compiler but probably quite hard esp. for supporting a variety of platforms... but one thing I want krug to be is very minimal dependency-wise.

felixangell commented 6 years ago

note, when we invoke ld, we do not invoke the libc runtime

felixangell commented 6 years ago

technically irrelevant due to using gcc as a linker frontend