Trying to work out how the C integration works , going over the way std lib files build but its not straight forward ( eg what are .bits files) . Probably not the best place to get into bitc but I have done some basics and this is what I need to evaluate it.
Have use bitcc to write a h file from helloworld which is mainly bitc stdlib stuff ( even when using -nostdlib) What I want to do is link in a couple of c obj files. Am I correct in saying the way to do this is Add c interface with provides externals for C code . Build bitc code as normal ( it should have a main or a dummy main if making a lib ) Output the code as c Compile the c into obj via gcc Link it via ar. See any errors. Update the bitc for external ref names Rebuild. Is this correct and is it the best way or is there a way to say go bitcc -I xxx file1.bitc .. cfile.c OR cfile.obj Anyway hooking bitC into the C project is probably better due to tooling rather than have bitc produce the exe . Ben _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
