On 12/18/2012 07:29 AM, Jim Klimov wrote: > I think, with proper API between programs and libraries, or perhaps > by initializer like libmain() to be invoked by dynamic lib loader, > selection of binary code for the particular hardware - such as with > the CPU AES support and without it, in this thread's case - can be > done with just pointers to functions provided by a library binary. > Selection of SPARC vs. x86 (vs. ARM...) might be tricky though, but > within an instruction set family the initializer can be built as > a lowest common denominator (i.e. 32-bit i386 for the intel/amd > platform).
The linker already can do this for various hardware capabilities across a single architecture. See libsoftcrypto in ON for an example. Robert ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
