>How to do this?
>I have OpenSolaris build 38 Intel
>I need to compile __asm__ macros(Yes, this this gcc style) but with sun 
>studio.Some time ago(build
 24 i think) it worked. Now:
>cc   1.o   -o 1
>Undefined                       first referenced
> symbol                             in file
>__asm__                             get_sp.o
>ld: fatal: Symbol referencing errors. No output written to get_sp
>
>What library should I provide?

The __asm__ code is not compatible with Sun Studio compilers.


I think you can do some limited "asm()" calls, but not the very
fancy things gcc allows.

The more fancy inlines are done using inline templates, so e.g.,
usr/src/lib/libc/amd64/threads/amd64.il
usr/src/uts/intel/ia32/ml/ia32.il

Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to