Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Information on usage
@ 2017-09-07 20:59 Claudio Eterno
  2017-09-08  8:02 ` R0b0t1
  2017-09-08  8:47 ` Claudio Eterno
  0 siblings, 2 replies; 3+ messages in thread
From: Claudio Eterno @ 2017-09-07 20:59 UTC (permalink / raw)
  To: gdb

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,

Claudio


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Information on usage
  2017-09-07 20:59 Information on usage Claudio Eterno
@ 2017-09-08  8:02 ` R0b0t1
  2017-09-08  8:47 ` Claudio Eterno
  1 sibling, 0 replies; 3+ messages in thread
From: R0b0t1 @ 2017-09-08  8:02 UTC (permalink / raw)
  To: Claudio Eterno; +Cc: gdb

On Thu, Sep 7, 2017 at 3:59 PM, Claudio Eterno <eterno.claudio@gmail.com> 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Information on usage
  2017-09-07 20:59 Information on usage Claudio Eterno
  2017-09-08  8:02 ` R0b0t1
@ 2017-09-08  8:47 ` Claudio Eterno
  1 sibling, 0 replies; 3+ messages in thread
From: Claudio Eterno @ 2017-09-08  8:47 UTC (permalink / raw)
  To: gdb

bad mailing excuse me!

2017-09-07 22:59 GMT+02:00 Claudio Eterno <eterno.claudio@gmail.com>:
> 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,
>
> Claudio



-- 
Claudio Eterno
via colle dell'Assietta 17
10036 Settimo Torinese (TO)
Linux user n. 499785 registered on linuxcounter.net


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-08  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-07 20:59 Information on usage Claudio Eterno
2017-09-08  8:02 ` R0b0t1
2017-09-08  8:47 ` Claudio Eterno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox