From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17351 invoked by alias); 25 Jan 2019 19:52:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17270 invoked by uid 89); 25 Jan 2019 19:52:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1235, HX-HELO:sk:mail-ed X-HELO: mail-ed1-f50.google.com Received: from mail-ed1-f50.google.com (HELO mail-ed1-f50.google.com) (209.85.208.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Jan 2019 19:52:06 +0000 Received: by mail-ed1-f50.google.com with SMTP id y20so8267903edw.9 for ; Fri, 25 Jan 2019 11:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qhkWcpDX2BMTgjgctSdGyBxUfpMZLXzSqM+6voBWvhY=; b=rF6CZ/Tc5YdjIDIyPeWti2W+RCVpP0PTaScIFsotiZhyRxOFYaM4hxH4rSBHdrT6Zz VMvbfgzF5teJ8LjiYR7tcsb8F1KOoEZJhbdbLNZOa49uEQwKHcpBvE6TWHuZSyFX0KRE 0hZgA/2Nh/TRFh8mAyd6n5SayJ1bHfaVzxPcMCzeLdOcFpX2UP7Qq/2C14QnCjx5V7KB 9yUiIlaRdO9eyTYzsVgw41iEQ1iM9ITHq5fcgNGy6vNcQlmk+dvbtg1dNMDbspGKZjQG aH/PSE2qt17y2T+CfbLys9vt8PQVhSIfOHnYfR6T+CH2OTAJP7RMihZqZoxtHIV5f2X8 IXVA== MIME-Version: 1.0 References: In-Reply-To: From: Tejas Joshi Date: Fri, 25 Jan 2019 19:52:00 -0000 Message-ID: Subject: Re: About GSOC. To: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00223.txt.bz2 It took some time to get know using GDB, but upto some end I got it to work. The enum real_value_class is used to classify the number into zero, normal, infinity and NaN. This class is represented by r->cl in real_value and values in struct real_value are used as flags or representations while string to real conversion (real_from_string) in real.c and other functions. The decimal/hex string value is converted into real in real_from_string function with byte-byte comparison which also include mpfr. (Correct me if I am wrong.) What is the significance of mpfr related to these internal representations? Thanks. -Tejas On Wed, 23 Jan 2019 at 23:06, Joseph Myers wrote: > > On Wed, 23 Jan 2019, Tejas Joshi wrote: > > > But I really dont know how to inspect a file like real.h (real_value)/real.c? > > Use cc1 to build a test program with selected floating-point constants in > it. Set breakpoints on appropriate functions in real.c (e.g. related to > converting strings for real constants into the internal representation). > Look at the representation produced for those constants to determine the > particular conventions being used. > > -- > Joseph S. Myers > joseph@codesourcery.com