From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6973 invoked from network); 28 Oct 1999 00:33:48 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Oct 1999 00:33:48 -0000 Received: from postoffice2.mail.cornell.edu (POSTOFFICE2.MAIL.CORNELL.EDU [132.236.56.10]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA31007 for ; Wed, 27 Oct 1999 20:33:48 -0400 Received: from x2356.resnet.cornell.edu (X2356.RESNET.CORNELL.EDU [128.253.179.249]) by postoffice2.mail.cornell.edu (8.9.3/8.9.3) with ESMTP id UAA13839 for ; Wed, 27 Oct 1999 20:33:47 -0400 (EDT) Received: from x2356.resnet.cornell.edu (localhost [127.0.0.1]) by x2356.resnet.cornell.edu (8.9.2/8.9.2) with ESMTP id UAA03890 for ; Wed, 27 Oct 1999 20:33:53 -0400 (EDT) Message-Id: <199910280033.UAA03890@x2356.resnet.cornell.edu> X-Mailer: exmh version 2.0.2 To: axp-list@redhat.com Subject: Re: which alpha cpu??? In-Reply-To: Your message of "Wed, 27 Oct 1999 16:06:51 EDT." <38175B5B.2C6676E9@innova.net> Reply-to: clc31@cornell.edu Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_1022028619690" Date: Wed, 27 Oct 1999 20:33:53 -0400 From: "Charles L. Chandler" This is a multipart MIME message. --==_Exmh_1022028619690 Content-Type: text/plain; charset=us-ascii yep. compile and run the following program with ccc (the Compaq C Compiler). I can provide a binary if you need it. -Chaz --==_Exmh_1022028619690 Content-Type: text/plain; name="alpha_implver_amask_features.c"; charset=us-ascii Content-Description: alpha_implver_amask_features.c Content-Disposition: attachment; filename="alpha_implver_amask_features.c" /* // ALPHA_IMPLVER_AMASK_FEATURES.C V1.1 // Retrieve the Alpha microprocessor family and features // // Author: Steve Hoffman, Digital Equipment Corporation // hoffman@xdelta.enet.dec.com, 3-Feb-1997. // // DEC C V5 and later under OpenVMS. // Also operates under DEC C on Digital UNIX. // // See the Alpha Architecture Reference Manual for the current // microprocessor family codes, as well as the instruction set // extension definition codes. */ #include #include main() { int implver = asm("implver %r0;"); int amask = asm("amask %a0,%r0;", -1 ); int definedbits = 0; printf("Alpha Microprocessor Family:\n"); /* // The "microprocessor family" includes the named microprocessor, // and various microprocessors (if any) derived from it. */ printf(" DECchip 21%1.1d64 or variant\n", implver ); printf(" (EV%1.1d microprocessor core)\n", implver + 4 ); /* // The amask bit is *clear* if the capability is *present*... */ printf("Alpha extensions available:\n"); if ( !~amask ) printf(" none.\n"); definedbits |= 1L<<0; if ( ~amask & 1L<<0 ) printf(" byte-word, et al.\n"); definedbits |= 1L<<1; if ( ~amask & 1L<<1 ) printf(" square root, et al.\n"); definedbits |= 1L<<8; if ( ~amask & 1L<<8 ) printf(" Audio-video, et al.\n"); if ( ~amask & ~definedbits ) printf(" Unknown capability bit(s) present."); return 1; } --==_Exmh_1022028619690--