* How to get the ".file and filename" section in assembly file.
@ 2010-02-02 10:04 Prashant Purohit
2010-02-02 10:53 ` Andrew Haley
0 siblings, 1 reply; 3+ messages in thread
From: Prashant Purohit @ 2010-02-02 10:04 UTC (permalink / raw)
To: gcc-help
Hi all,
I am porting GCC to a new dummy architecture and I am successful to
get the required assembly file from cc1 but that assembly file does not
contain the ".file" section and filename as it was there in all other GCC
ported targets.
Please, tell me if there is any function or macro to do this as I
was not able to find it in GCC Internals.
Thanks & Regards,
Prashant.
--
View this message in context: http://old.nabble.com/How-to-get-the-%22.file-and-filename%22-section-in-assembly-file.-tp27417944p27417944.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get the ".file and filename" section in assembly file.
2010-02-02 10:04 How to get the ".file and filename" section in assembly file Prashant Purohit
@ 2010-02-02 10:53 ` Andrew Haley
2010-02-02 11:11 ` Rajiv KI
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Haley @ 2010-02-02 10:53 UTC (permalink / raw)
To: gcc-help
On 02/02/2010 10:01 AM, Prashant Purohit wrote:
>
> I am porting GCC to a new dummy architecture and I am successful to
> get the required assembly file from cc1 but that assembly file does not
> contain the ".file" section and filename as it was there in all other GCC
> ported targets.
>
> Please, tell me if there is any function or macro to do this as I
> was not able to find it in GCC Internals.
If I wanted to know that, I'd just use gdb to step through until the ".file"
was emitted. Why don't you do that?
Andrew.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get the ".file and filename" section in assembly file.
2010-02-02 10:53 ` Andrew Haley
@ 2010-02-02 11:11 ` Rajiv KI
0 siblings, 0 replies; 3+ messages in thread
From: Rajiv KI @ 2010-02-02 11:11 UTC (permalink / raw)
To: gcc-help
Andrew Haley wrote:
>
> On 02/02/2010 10:01 AM, Prashant Purohit wrote:
>>
>> I am porting GCC to a new dummy architecture and I am successful
>> to
>> get the required assembly file from cc1 but that assembly file does not
>> contain the ".file" section and filename as it was there in all other GCC
>> ported targets.
>>
>> Please, tell me if there is any function or macro to do this as I
>> was not able to find it in GCC Internals.
>
> If I wanted to know that, I'd just use gdb to step through until the
> ".file"
> was emitted. Why don't you do that?
>
> Andrew.
>
>
Hi,
Look into the macros TARGET_ASM_FILE_START,
TARGET_ASM_FILE_START_FILE_DIRECTIVE, TARGET_ASM_FILE_START_APP_OFF.
Rajiv
--
View this message in context: http://old.nabble.com/How-to-get-the-%22.file-and-filename%22-section-in-assembly-file.-tp27417944p27418516.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-02 10:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-02 10:04 How to get the ".file and filename" section in assembly file Prashant Purohit
2010-02-02 10:53 ` Andrew Haley
2010-02-02 11:11 ` Rajiv KI
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).