From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id 512413858022 for ; Tue, 25 Jan 2022 07:44:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 512413858022 Received: by mail-pg1-x52e.google.com with SMTP id z131so6577567pgz.12 for ; Mon, 24 Jan 2022 23:44:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0SEJpmaaQWERu1lo3Mu0JSaiiv5PEXYNn/PshrNgWWE=; b=QhoxuMuSzQ4uy9JUg69yhTE+AMU8jxQiw4kWqoluUDBwxbyHjFE0WQYClQ2NOoPX0x HPNIxtYtFH0hn3fhMj2ZMKMVePm/o20yQJUVM4OaeJnhZi//UN8Qr8x4heLi8wkcSW4d 1nMmsz0QQOLyVrSco8mOYU3MWyKf2A41UTSGOxvQleDybfIcRa/+KiavwwPu6v6TRvO+ Y1UrTYMju5lpYIBsUgqjMuGI1kTjdPN0ybN73TCB2oN/0wh0tgydSPkgiqpxpTismdbq N30oFRC3Bucal3STMFrUQ/3DdZ0qzEpF/45DZUcOWU+WD2O2J+4l0QpOXQEjDWZe1DUe HP+A== X-Gm-Message-State: AOAM533wR3EXXJxee4VIqOS3FLu4u8y4tKF2DcrHleIJopn+LMB+v5PY AbOxCUnvyeYQCwLiRItYRX1zBaTO2Q++8knpxEnFXDuk X-Google-Smtp-Source: ABdhPJwIrN7+aKyK3a+tqnfJwem6DMYkcVHBSSMFIENs67ziXmHWOk4ys7+phUhK5xIOCIEot4GuHlbVbQhNBjqvXsI= X-Received: by 2002:a05:6a00:168b:b0:4a8:d88:9cd with SMTP id k11-20020a056a00168b00b004a80d8809cdmr17295434pfc.11.1643096639226; Mon, 24 Jan 2022 23:43:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Krishna Narayanan Date: Tue, 25 Jan 2022 13:13:47 +0530 Message-ID: Subject: Re: Doubts about GCC project advancement (Demangler). To: Martin Jambor Cc: gcc-help X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2022 07:44:02 -0000 Respected Sir, Thanks for your reply. I will build the trunk version of gcc right away. I have had interest in the C/C++/Java since sometime and working on it seems great. Demangler is a term which I am not familiar with but function overloading,constructors, polymorphism are those which I am used to.After googling things out I now have a basic idea of Demangler/mangler terms. I went through some material of extern C and implicit stacks which has( LIFO).But I don't know the in depth mechanism that happens within the compiler regarding stacks where can I read more about it? I went through the C memory management which states about dss,stack,heap which gave me a brief idea about the domain,I read the demangling chapter:28 of gcc docs,which states about the actual code(program) but not familiar with ABI,abi.h so I have to go through it once.The project idea demands a explicit stacks where the number of stack,stack frame are not sure,so there is going to be heap memory mismanagement.So how do I proceed to work on this!? What are basic terminologies(code base) and concepts which I should be familiar with to work on this project? Can I work on this project ? Hoping for your reply soon. Thanks and regards, Krishna Narayanan. On Mon, Jan 24, 2022, 3:53 PM Martin Jambor wrote: > Hello, > > I am delighted you found contributing to GCC interesting. Sorry for the > delay in replying. > > I am adding the GCC mailing list in case other GCC developers have > something to add to my reply. It is usually a good idea to email the > list and not an individual, if only because most of the community is > better at timely replies than I am. > > On Wed, Jan 19 2022, Krishna wrote: > > Respected Sir, > > > > Hello,I am Krishna Narayanan ,an undergraduate pursuing electronics and > > telecommunications,I am a beginner and new to this community.I kicked > > off by building the gcc from source and I have successfully build the > > gcc 10.1 on my linux which had a default of gcc-9.3.0. > > If you want to contribute new features (as opposed to fixing old bugs), > you should really check-out the current development version (master) from > our git and build that. If you managed to build gcc 10 from the > sources, you should find it easy. But in order to study the sources to > plan your project, it is important to look at the current version. > > Although git master is a moving target, usually that is generally not a > problem and until approximately April we are now in bug-fixing stage > only, so it really should not be a concern. Later, if there are any big > changes in an area related to your GSoC project, your mentor will help > you overcome it. > > > I was surfing for > > projects but GCC caught my attention as I was familiar with the > > technologies and eager to learn more in depth about the compiler. > > > > I am not familiar with many terms but trying to cope up with it. > > This might not be easy but perhaps there is still time to learn the > important basics, depending on the area in which you'd like to work. > > In most cases, you would need at least to know what an Intermediate > Language (IR) is and have a general understanding of the relevant one in > GCC - which is probably Gimple or the representation used by the > front-end (such as Fortran or Rust) if you decide to contribute to one. > > The "Make cp-demangle non-recursive" project requires "just" good > working knowledge of C and how to implement a recursion driven by an > explicit stack. > > > I went > > through last year projects read about their definitions what they meant > > and what was modified/changed for a better enhancement but I did'nt get > > a grasp over it as I have just started. Can you suggest me some good > > first issues, > > No unfortunately I cannot. Perhaps someone else might. But I am afraid > there are not very many open easy issues in GCC. Easy issues get fixed > quickly. > > But if you have a specific question abut any particular term or problem, > feel free to ask on the mailing list. It might even help us to phrase > it better on our wiki. > > > I have read the simple projects given on the webpage about > > debugging of test suites but I did not get a clear idea about that,can > > you suggest me a tutprial or manual which I can follow debugging > > Perhaps https://dmalcolm.fedorapeople.org/gcc/newbies-guide/index.html > and especially > https://dmalcolm.fedorapeople.org/gcc/newbies-guide/debugging.html > > >I read > > about project topics but have a doubt regarding their implementation for > > example I understood static analysis pass but how do I implement it in > > gcc,!? > > GCC already has static analyzer, it just needs to be extended (see files > in subdirectory src/gcc/analyzer after you have checked out our master). > Figuring out how to extend it - with the help of the community(!) - is > part of the game. So again, if you have any specific question about it, > feel free to ask. > > Hope this helps at least a little, > > Martin >