From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109949 invoked by alias); 8 Sep 2017 08:02:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 109888 invoked by uid 89); 8 Sep 2017 08:02:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=r0b0t1, R0b0t1, Eterno, Claudio X-HELO: mail-yw0-f172.google.com Received: from mail-yw0-f172.google.com (HELO mail-yw0-f172.google.com) (209.85.161.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Sep 2017 08:01:59 +0000 Received: by mail-yw0-f172.google.com with SMTP id r85so5477591ywg.1 for ; Fri, 08 Sep 2017 01:01:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lqBSBHSX1HqLyFMoVDIDrxK3SfKm/UbuI4Rq5f4mIyE=; b=Iz5A4qH+kCEKgzsEkD7623MeLJ1qUrIFWyHlWG6AYebhMHnkbfbTn0gdVbRntf9GSD jeuYYTy/ZivNyAWT6GlATL8Hs11ESj9Eo8XatKgjmk/sZs7xTCtoku88iOxBfqGi+ZPn hl9DCSWUjWnx3ObAHRxBKOBLEoNzdVsHZKNxt52KjgBKCDUyc9hHtDyA96SDPG/udIc7 gq9qsuK0kaSaMDmL1N781iQn0KGAXcRlx9DNY5oBkCMeT5qwYqvwe1ntzQ2VtJ0GCPzh i6rLmFGlUZkm+za9DA0IR6j3b5uOi0nmkdblcqUyUm02b86CtCXDnZObXSZNOn9pIItA vp4Q== X-Gm-Message-State: AHPjjUiEuxDMNCM0uIUy5N2Z5eyJ3N3dtYSoNUSwxGGjudPRESuBcHbF lmhCgyRARL967Dm4CPr/TRcoJY5/1e5z X-Google-Smtp-Source: AOwi7QB2h2pb0mk2d6S14D/9p9+kYSUqnE3ll+1myCWuB4qDMOPiN5e9vilUes6tRMOBJ5c3vWTHo0iPDwrov2wGcUM= X-Received: by 10.37.58.3 with SMTP id h3mr1722675yba.61.1504857718024; Fri, 08 Sep 2017 01:01:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.211.10 with HTTP; Fri, 8 Sep 2017 01:01:56 -0700 (PDT) In-Reply-To: References: From: R0b0t1 Date: Fri, 08 Sep 2017 08:02:00 -0000 Message-ID: Subject: Re: Information on usage To: Claudio Eterno Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00023.txt.bz2 On Thu, Sep 7, 2017 at 3:59 PM, Claudio Eterno wrote: > Hello, > generally I work with a microcontroller that can be compiled in C by > its specific compiler(C166 family). With this compiler it is possible > to generate the preprocessed of a file but the output I obtain isn't > so exaustive like gcc does when I do the same job in linux (gcc -E > -dD...). Recently I made a test with gcc including paths of the > C166(so the default headers, instead the linux default libs, are taken > from the microcontroller directory). The result, apart the built-in > defines that gcc insert(these can be easily removed with a script), is > perfect for build a preprocessed header. > My question: is this usage of gcc a valid use? Should I expect some traps? > Consider this not a bug but an help request ... > Thank you, > This is the GDB mailing list. You may want to ask on the GCC user mailing list instead. I would expect what you want to do to work, but I am slightly confused as to why you want to do it. You may want to see if SDCC (the small device C compiler) fits your needs. It may support C166 devices, I can't tell for sure based on the search results I am seeing. Cheers, R0b0t1.