From owner-freebsd-questions@FreeBSD.ORG Mon Jan 23 01:04:10 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D04E16A41F for ; Mon, 23 Jan 2006 01:04:10 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3FD943D48 for ; Mon, 23 Jan 2006 01:04:09 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MH-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0ITI005OETMX8QD0@VL-MH-MR002.ip.videotron.ca> for freebsd-questions@freebsd.org; Sun, 22 Jan 2006 20:04:09 -0500 (EST) Date: Sun, 22 Jan 2006 20:04:03 -0500 From: Nicolas Blais In-reply-to: <6.0.0.22.2.20060122184912.0258fc50@mail.computinginnovations.com> To: freebsd-questions@freebsd.org Message-id: <200601222004.08956.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1514270.HmZpKPO1RW; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <20060121203306.25121.qmail@simone.iecc.com> <200601221851.03015.nb_root@videotron.ca> <6.0.0.22.2.20060122184912.0258fc50@mail.computinginnovations.com> User-Agent: KMail/1.9.1 Cc: Derek Ragona Subject: Re: C/C++ call to detect cpu? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2006 01:04:10 -0000 --nextPart1514270.HmZpKPO1RW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 22 January 2006 19:53, Derek Ragona wrote: > Nicolas, > > I have commented assembler code for the intel family of CPU's. This code > goes back to the i386 and also takes into account the CPU string, and will > calculate the clock speed. I do call this as a library function from c/c= ++ > programs. > > Unfortunately this is written for Microsoft's MASM, and I have never port= ed > it to gas. > > If you want a copy I can send you the assembler source code and/or the > commented listing as well. > > -Derek > Certainly, that would be of great help! Under what license would you be=20 releasing the source ? :) Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #0: Sat Jan 21 11:33:22 EST 2006 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart1514270.HmZpKPO1RW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD1CuI4wTBlvcsbJURAp/BAKCi4QBIYYzymMI9wzEU9DhY4Ug9QACgpd+1 9dP7AznSCtIZh/M45XC0BD4= =HkKw -----END PGP SIGNATURE----- --nextPart1514270.HmZpKPO1RW--