Assembler directive?
Assembler directive?
- Subject: Assembler directive?
- From: William Squires <email@hidden>
- Date: Sat, 21 Nov 2009 17:09:55 -0600
I'm trying to understand some IA-32 assembler produced by gcc. I've
got a simple Command-line tool (C) with only a simple main.c
#include <stdio.h>
int main(int argc, char *argv[])
{
int i = 0;
return 0;
}
I select the SDK, architecture, and configuration as 10.5 | Debug |
i386, then select main.c and choose Build | Show Assembly from the
Build menu. There's one thing that confuses me. There's what looks
like an assembler directive of the form
.loc <integer> <integer> <integer>
interspersed with the regular instructions; what does this do?
Here's a sample:
...
LCF12:
.loc 1 5 0
movl $0, -12(ëp)
.loc 1 7 0
movl $0, êx
.loc 1 8 0
leave
ret
...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden