public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* output binary
@ 2004-03-23 20:20 FOSTER,MARK S
  2004-03-23 20:36 ` Dale Johannesen
  2004-03-23 20:38 ` Diego Novillo
  0 siblings, 2 replies; 4+ messages in thread
From: FOSTER,MARK S @ 2004-03-23 20:20 UTC (permalink / raw)
  To: gcc

Hi All,

Could someone direct me to the area of gcc source code that deals 
with outputing the actual binary code.  For example, the source 
code that outputs an "e8" for a "call" instruction.  Ive been 
trying to trace through the code, but everything I keep finding 
leads to stuff that is still outputing strings like "call".

Thanks in advance for any help.

Mark

--
FOSTER,MARK S

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

* Re: output binary
  2004-03-23 20:20 output binary FOSTER,MARK S
@ 2004-03-23 20:36 ` Dale Johannesen
  2004-03-23 20:38 ` Diego Novillo
  1 sibling, 0 replies; 4+ messages in thread
From: Dale Johannesen @ 2004-03-23 20:36 UTC (permalink / raw)
  To: FOSTER,MARK S; +Cc: gcc, Dale Johannesen

> Could someone direct me to the area of gcc source code that deals with 
> outputing the actual binary code.  For example, the source code that 
> outputs an "e8" for a "call" instruction.  Ive been trying to trace 
> through the code, but everything I keep finding leads to stuff that is 
> still outputing strings like "call".

gcc does not output binary.  It creates an assembly code output file 
(.s) which is then
run through an assembler to produce binary.

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

* Re: output binary
  2004-03-23 20:20 output binary FOSTER,MARK S
  2004-03-23 20:36 ` Dale Johannesen
@ 2004-03-23 20:38 ` Diego Novillo
  2004-03-23 20:50   ` Zack Weinberg
  1 sibling, 1 reply; 4+ messages in thread
From: Diego Novillo @ 2004-03-23 20:38 UTC (permalink / raw)
  To: FOSTER,MARK S; +Cc: gcc

On Tue, 2004-03-23 at 14:20, FOSTER,MARK S wrote:

> Could someone direct me to the area of gcc source code that deals 
> with outputing the actual binary code.
>
There is none.  GCC emits assembler output.


Diego.

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

* Re: output binary
  2004-03-23 20:38 ` Diego Novillo
@ 2004-03-23 20:50   ` Zack Weinberg
  0 siblings, 0 replies; 4+ messages in thread
From: Zack Weinberg @ 2004-03-23 20:50 UTC (permalink / raw)
  To: FOSTER,MARK S, gcc

Diego Novillo <dnovillo@redhat.com> writes:

> On Tue, 2004-03-23 at 14:20, FOSTER,MARK S wrote:
>
>> Could someone direct me to the area of gcc source code that deals 
>> with outputing the actual binary code.
>>
> There is none.  GCC emits assembler output.

To expand, you should be looking at the source code of the assembler.
The GNU assembler is developed separately from GCC.  See
http://sources.redhat.com/binutils/

zw

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

end of thread, other threads:[~2004-03-23 19:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-23 20:20 output binary FOSTER,MARK S
2004-03-23 20:36 ` Dale Johannesen
2004-03-23 20:38 ` Diego Novillo
2004-03-23 20:50   ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).