From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6199 invoked by alias); 2 Nov 2011 13:37:58 -0000 Received: (qmail 6187 invoked by uid 22791); 2 Nov 2011 13:37:55 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Nov 2011 13:37:37 +0000 Received: by ywf9 with SMTP id 9so144557ywf.20 for ; Wed, 02 Nov 2011 06:37:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.190.199 with SMTP id e47mr6963458yhn.97.1320241056386; Wed, 02 Nov 2011 06:37:36 -0700 (PDT) Received: by 10.236.208.229 with HTTP; Wed, 2 Nov 2011 06:37:36 -0700 (PDT) Date: Wed, 02 Nov 2011 13:37:00 -0000 Message-ID: Subject: How to check the source code of stdarg? From: Parmenides To: Gcc mailing list Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00020.txt.bz2 Hi, The gcc implements the stdarg.h to support variable parameters functions. I wonder how it work. So, I find the stdarg.h at /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/include/stdarg.h Open it , I found some definitions as follows: #define va_start(v,l) __builtin_va_start(v,l) #define va_end(v) __builtin_va_end(v) #define va_arg(v,l) __builtin_va_arg(v,l) Every macro has its __builtin_... version. I try to look for these '__builtin_...' in gcc source code, but has not found. So, I want to know how to check their source code.