From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 893AE3858284 for ; Fri, 3 Mar 2023 18:28:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 893AE3858284 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=none smtp.mailfrom=kam.mff.cuni.cz Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 7A25028A01B; Fri, 3 Mar 2023 19:28:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1677868124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mpW8nt3cw0MqvlWoY/lksMUjYWdUkV6/PixyfWAaQGM=; b=ID5oLcLSOyjSrMelB++Qp4xdNwOZA7hrrAYjadBSvz0L12wxdYyUtxqiVzRa9xT3NpkiTw mid4edoA+03CsS09ayM79Es5pu8fCWovfpVTL1Wzy7btQxQbhwWUAcEQsyv+TLlrFcM0F9 UokxCMx/k9tfdkWhiyeLaqJmOG1Wb1Q= Date: Fri, 3 Mar 2023 19:28:44 +0100 From: Jan Hubicka To: Peter Lafreniere Cc: GCC Subject: Re: [GSoC] Introduction and query on LTO object emmission project Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,KAM_SHORT,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, > Hi! I've been interested in compiler development for a while, and would love to > work with any of you as part of GSoC, or even just as a side-project on my own. > > I'm an 18 year-old student going into university next year with a passion for all > things open source and low level. I consider myself fluent in c, and proficient > with c++, rust, and x86 assembly, but unfamiliar with practical compiler design. > I have done some reading on the theoretical aspects of compilers, however. > > While I haven't worked with the GCC community before, I have worked with the linux > community and have made several small patches there, so I am familiar with both > email-based workflows and the principles of open-source development. > > This summer, I'm looking for more experience working on larger projects, as well > as getting into real compilers. > > Of particular interest to me is the project idea labelled "Bypass assembler when > generating LTO object files." I see that the project was taken last year, but > I can find no sign of any changes committed to trunk > (`git shortlog --after=2022-01-01 | grep -i -E "lto|assembl(er|y)"` shows nothing > related to this project) and no sign of any needed change made in the code. > Is this project still available? yes, the project is available and Maritn Jambor and me would be happy to mentor it. Please add me and Martin to CC of any emails on the proejt. I think it would be good to start by looking at the original work in progress patch (linked from the task description, an updated version is here https://gcc.gnu.org/pipermail/gcc/2022-May/238670.html). Overall struture of the LTO optimization is described in paper https://arxiv.org/abs/1010.2196 One problem is that the object files produced by libiberty/simple-object.c (which is the low-level API used by the LTO code) are missing some information (such as the architecture info and symbol table) and API of the simple object will need to be extended to handle that. So I think getting familiar with simple-object.c and the elf/mach/coff handlers of it would be a good initital step. It will be necessary to add API to specify the architecture and symbols in the symbol table so the resulting object files are recognized by linker. Second part would be handling of output of dwarf debug information, so it may make sense to also take a quick look on its documentation. The on-disk representation is actually not too hard and it should be possible to make a direct writer. Jan > > I'm also willing to work on other projects, ideally in the middle/backend, but > currently I have only been experimenting with the gcc/[lto,data]-streamer* files. > If anyone has a small or medium sized project idea, please feel free to let me know. > > > I look forward to working with all of you in the future, > > Peter Lafreniere > >