SimpleIDE linking a Spin/Pasm object into a C binary?
evanh
Posts: 15,921
I've just had my first poke at C on the Prop. Using SimpleIDE, I am particularly interested in marrying pasm code from the object exchange. My first look was to check out any existing examples and found one with libvgatext. It uses VGA.spin.
I can see in vgatext.c the Cog being launched with the VGA driver dat labelled reference. What I can't figure out is how the extern reference is filled. I'm not seeing anything in the sources.
I'm guessing there is some magic naming going on with OpenSpin compiling that is then matched up at link time?
I can see in vgatext.c the Cog being launched with the VGA driver dat labelled reference. What I can't figure out is how the extern reference is filled. I'm not seeing anything in the sources.
I'm guessing there is some magic naming going on with OpenSpin compiling that is then matched up at link time?
Comments
http://forums.parallax.com/showthread.php/158190-Can-t-get-cogc-files-to-compile.