Inline Assembly
I have to figure out how inline assembly works in Sun's C Compiler as opposed to the GNU C compiler. There is some assembly code which has to be ported (basically the magic instructions for stuff like compare-and-swap, activating SLE, etc...).
The reason why I'd like to get it working with Sun's CC is because the environment we're using is a Sun SPARC machine - so it seems only reasonable to use Sun's own C compiler to do the trick since it should be optimised for their architecture.
Moreover, I got the Bohm-Weisser Garbage Collector working on Sun's C compiler, and it seems that it would be a hassle to build the collector using GCC under Solaris.
Sun's Inline Assembly Page
http://developers.sun.com/prodtech/cc/articles/inlining.html
GCC's Inline Assembly Tutorial
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
The reason why I'd like to get it working with Sun's CC is because the environment we're using is a Sun SPARC machine - so it seems only reasonable to use Sun's own C compiler to do the trick since it should be optimised for their architecture.
Moreover, I got the Bohm-Weisser Garbage Collector working on Sun's C compiler, and it seems that it would be a hassle to build the collector using GCC under Solaris.
Sun's Inline Assembly Page
http://developers.sun.com/prodtech/cc/articles/inlining.html
GCC's Inline Assembly Tutorial
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
0 Comments:
Post a Comment
<< Home