>>> On Fri, Jan 04, 2002 at 12:02:03PM -0600 I heard the voice of >>> Stephen Montgomery-Smith, and lo! it spake thus: >>>> I want to create a Makefile for a C program that includes some Pentium >>>> II specific inline assembler code. How do I tell the compiler whether >>>> we are compiling on a i686? > > [lots of snippage]
Did this original question ever get answered? I think what you need is just -mcpu=i686 on the (g)cc command line. Or, given that other discussion seemed to indicate that a 686 isn't needed for these instructions, -mcpu=pentiumpro should do it. If there's any chance the code needs to run on older CPUs, go for the lower setting, as I believe this option affects the overall codegen and optimization. -- Ian To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message