From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by sourceware.org (Postfix) with ESMTPS id 72F6C3856247 for ; Tue, 10 May 2022 10:50:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72F6C3856247 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-x112f.google.com with SMTP id 00721157ae682-2f7c424c66cso175137087b3.1 for ; Tue, 10 May 2022 03:50:48 -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=N6k3qbx+RnWUGQs0RNPtAKrlJ8qfvpNM9+baI6YAlhc=; b=Gsyqr7AXrNKAUkkzAdSuNNhxRrna+UT0CVOAB7kQaS8Cqt6h8//jqf3fKaCXpLZZOJ fEKMeplJF4ty2eP7VlNr77q7A68+LjrFDFxWbo4aYjYJk1bvomEYo+qF2qjbar6x+aiR UEENIBe3mM2zcyB+e3i4tglUAvAcAlqRzQtCEKQvchOJB7wtNPIhQCSRDe8HHe9P4jK2 sDOhL6vdQ0IDyBscb2P0Mf5Z4qh2C4HsYDgx2uS61xwD/n5d0W6lCzdp6UlI1OqnUhff yoFf5sMkIN/aMTAese/X3nBAQ1plagdkFvU6DiWD5teEtn7BJsI0tKNF6iCiPQTbdv3A uZxg== 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=N6k3qbx+RnWUGQs0RNPtAKrlJ8qfvpNM9+baI6YAlhc=; b=68fk0AqosD2WXRBhCNVm9ecaOYbdeEewgh+yUn1gZh6XYG3zDN8k+3TbuP9vftpgc4 DtqljhXP8B80txXpQs5dzIvdNf9q1egNoCt8cH++iKd8abq2B+yn3RjW8PM97HkkE7of cKcYoBRXKtka476m7kXgInB0vLB1rsugfxrljtwQhD5bt51E+6VSulieAL2yykfxJVPD iBGV/xED3HizH0dwIZo+aEItwj1AzwENm+5Q//U9qmhB+7Vh4LktdeFw94XrGbbFM/ON QRuArkG+stgUxY77m6Qf2tLepDKxyueDBc91BRKaRCBarH5rTyJ8i8O2qfZDcAaQvqq0 pXxA== X-Gm-Message-State: AOAM533LcIRdeeXau13g90U4arpXFQsyOr+aym9/L1HSMRux12oJLqjc RbTDeuI+dcQ/xLqCmQqP4mJn+f9viWuk61pbqYLsOSC4lb8JTsOdOxkO0O/2uit5v3qxuVzcGgW hkhuTlBv7jIypxRMsyiiJRekpy5SfRCRytQ== X-Google-Smtp-Source: ABdhPJy2vEvJR/VZhnSXdVh/sBLWKnElF0Fd2qL5zprAMsRMtLd3dQttM3mcPqpNZa31+aGGNdUQukRm8vtbpJn1P60= X-Received: by 2002:a81:4a8a:0:b0:2f4:c511:a0af with SMTP id x132-20020a814a8a000000b002f4c511a0afmr18803769ywa.68.1652179847529; Tue, 10 May 2022 03:50:47 -0700 (PDT) MIME-Version: 1.0 From: RICHU NORMAN Date: Tue, 10 May 2022 16:20:35 +0530 Message-ID: Subject: How target.md file with target.c/.cc file invoke assembly instructions To: gcc-help X-Spam-Status: No, score=4.8 required=5.0 tests=BAYES_05, 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-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:50:52 -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 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? -- Thanks & Regards Richu Norman