extension from c to assembly

David Korn dkorn@pixelpower.com
Tue Feb 27 07:55:00 GMT 2001


>-----Original Message-----
>From: Scalabroni, Luigi (FL51) [ mailto:luigi.scalabroni@honeywell.com ]
>Sent: 26 February 2001 20:33

>Is there an extension to compile a C program and generate 
>assembly code and

 gcc -S

>relative addresses instructions,

 gcc -fpic

> etc, for debugging reasons? 

 gcc -g

  Sorry, your question is not very clear.  Gcc always generates
assembly code, that's why it needs a separate assembler to work.  Gcc 
uses relative address instructions either when generating position
independent code or whenever else it is appropriate, but it doesn't have
anything to do with debugging.  So you could use any or even all of the
three options I've listed above.  If that's not enough to solve your
problem, please try and explain it some more.

  cheers,
      DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the Gcc-help mailing list