From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by sourceware.org (Postfix) with ESMTPS id DDFE13857418 for ; Wed, 11 May 2022 05:45:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDFE13857418 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cusat.ac.in Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cusat.ac.in Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2fb965b34easo8807027b3.1 for ; Tue, 10 May 2022 22:45:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cusat-ac-in.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=11p6vqXpIJUYQyJJAnq4x0pJ383jHoc1uvnNV0zyjbg=; b=YTVN/CnVLRslkIKYukj41UYYK9qlGgCOmaAU4qK/iAo6AnqVH23aVu60GkrccR2mOf 6rF1KXoHO9HJ6PBe8IpF53YjrcEZlzDNr2stJdMUwM6tjty/LXgjv56SKu5T9F1WUbbQ ESXZDJgMNgmBB+ajy0TXUHtuDxq+H21fXZpZzb2fb1djNQYNKWVUKh3lEqapwpcuq0GZ 997RpM5G6X4h91zV1nYi6QYtvDPWVXTX/0pzyd2BuQchQepjmCsvl7RPc7Z5iZwX/zMq 3Lb5MlqRgT+/LnS9EM5wnw8f2seUUn9h1iUqEpoFjY3XyoYvGAXnxmvsFjxi7yaz18qd admQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=11p6vqXpIJUYQyJJAnq4x0pJ383jHoc1uvnNV0zyjbg=; b=dO1VV0q0qB4m9kj3AMakHmOD/D1MPMvSL/md3myRtoFu9Dl2gutNXZUdyO/tZc0kfU PQeEcs3iw7F+aULgMLM+4odXtybfdIn/sVbK+xGqqFxT0cpKd6MqVxer9kZ00iG78+21 TuF4M2CxhdCT7wf9L/rFM6tKxe2ngyTSSuwwhWjGbagmqgMH2MXzG8kjZfpHxSRDs5Dk Klv3DV9EJSizRgqPg92NJVRf/m9n2nsCsmL8eTTYWkyK05Gi8gtdo1J5FcpnekRJcQeb B4Pje+4m/xs/bx2IuFHjU/jEkcViqdoHp88Nb5PfhaOsOC2yEkm03+1oXzm3qjpPxqXH Ugng== X-Gm-Message-State: AOAM531YvM7cPl8psJ749SjEfPvYKNZLUgPGbLSh1sIlN11vbXT+hI35 d2EgucrmuwV3NQk1dMO8HG6v6hxspcp1FACwrVHgTpHddYky8zsfxdyRGTBWBueIP04IW32/ZeQ wnm51+VE4nT4ULfnNgfPRhVBUZhI= X-Google-Smtp-Source: ABdhPJzz/mC3SfnlQws1PCxQUMbvqXkOY6KTYhHosdoLoZ9F/oKAYehNAObqv+t0XhSGszMGbxM6CdmKgRfoelPHpB8= X-Received: by 2002:a81:4a8a:0:b0:2f4:c511:a0af with SMTP id x132-20020a814a8a000000b002f4c511a0afmr23355140ywa.68.1652247941980; Tue, 10 May 2022 22:45:41 -0700 (PDT) MIME-Version: 1.0 From: RICHU NORMAN Date: Wed, 11 May 2022 11:15:31 +0530 Message-ID: Subject: How target.md file with target.c/.cc file invoke assembly instructions To: gcc@gcc.gnu.org X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2022 05:45:45 -0000 Hi, I am new in gcc development and I am focusing on cross-compilers.I have added a few instructions for the target machine in binutils 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.What is the use of target.c file and how cost is computed in it? 6.Which file to be examined in rtl-dump of object file for getting the input and output to this stage in gcc? -- Thanks & Regards Richu Norman