From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 51E973955C8D for ; Tue, 10 May 2022 10:57:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 51E973955C8D Received: by mail-wr1-x429.google.com with SMTP id q23so23252540wra.1 for ; Tue, 10 May 2022 03:57:16 -0700 (PDT) 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=kfLt37ID5q9IcsdktnkUyUAxEECFKN88ytLBJ8zWvuU=; b=IV/k5Pkx2nigoy6FgUVtQvnWkA+9Lfo6KVK4d4s4FQOXcD0IC+IbLV4uhya56pU7Sp IX40C1baM0juS64FqqAncjU+ftBrrA2/tqmo8gvysKzJPiX8AxPVNqR6/GHZ6eujy8/Q 0dbq3AgCzFMgEyWfP7XV6aXhxQdXQ4dW7h1HJfymRzI7qz7io/m1a/0xoYjU+GxDyjGC S96SlwKg9OR8bQ8/MSk0pw9E++dQB7MFUPi5JEGGlAa3qS2lnyLDI0CUbcz55a4vTaKx FDI0CAJgF5ZBFTxHfhgKKcXm//pCBLc7xp//OazrYC59NddBiSWcw8mEK/CuXBFdhecz Glmg== X-Gm-Message-State: AOAM533EPncLcpDdf6t4AGvEo6DM7KOfE1Lb4FcVvgFoB87T5d/FxLum Lnj4Yab1enR+P1oXdaAjF/AXzFa0Q1ZtZSwevVXvE3DA+30= X-Google-Smtp-Source: ABdhPJyQVhNMZ7WKgHjoR8wowCKSHY6qvbz4P800Gwk5riHm7i1O2kw/h5MYFRBr/U+ZMV5Or+/BOwpSNW4g7dpYkk0= X-Received: by 2002:a05:6000:1687:b0:20c:7de9:feca with SMTP id y7-20020a056000168700b0020c7de9fecamr18250660wrd.221.1652180235060; Tue, 10 May 2022 03:57:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 10 May 2022 11:57:04 +0100 Message-ID: Subject: Re: How target.md file with target.c/.cc file invoke assembly instructions To: RICHU NORMAN Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, MEDICAL_SUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 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, 10 May 2022 10:57:17 -0000 On Tue, 10 May 2022 at 11:51, RICHU NORMAN wrote: > > Hi, > I am new in gcc development and I am focusing on cross-compilers.I have > added a few instructions for the target machine and invoked it using asm() > from c program.Now I want to add those instructions to gcc and define that > instruction in target.md file.I have a few queries regarding the working of > gcc. > 1. Do *target.md* files along with* target.cc/.c *files > help to invoke assembly instructions automatically? > 2.What is the input for this ?(.Gimple or .cfg files) > 3.How does it work internally? > 4.I have defined an instruction in target.md alone.But that does not > work.How to make it work? > 5.Which file to be examined in rtl-dump of object file for getting the > input and output to this stage in gcc? This is the wrong mailing list for questions about GCC development: https://gcc.gnu.org/lists.html