From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 13:42:24 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 AD3AB16A4DE for ; Wed, 2 Aug 2006 13:42:24 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44B0A43D60 for ; Wed, 2 Aug 2006 13:42:22 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 93E9B5E8B; Wed, 2 Aug 2006 09:42:21 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UgNVoUAV2HL7; Wed, 2 Aug 2006 09:42:20 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-117-245.ny325.east.verizon.net [68.161.117.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 590815E7C; Wed, 2 Aug 2006 09:42:20 -0400 (EDT) Message-ID: <44D0ABB1.9070307@mac.com> Date: Wed, 02 Aug 2006 09:42:09 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Lorin Lund References: <44D06735.40603@infowest.com> In-Reply-To: <44D06735.40603@infowest.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: gcc: cpp pre-defined variables 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: Wed, 02 Aug 2006 13:42:24 -0000 Lorin Lund wrote: > How can I find all the variables that are pre-defined in the pre-processor. > > Do these come from a configuration file? Or are the compiled in to cpp when > it is ported to a platform? Something like: touch test.h; cpp -dM test.h ...will show you all of the predefined macros. These are compiled into the compiler when the toolchain is built. -- -Chuck