• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Assembler directive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Assembler directive?
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: Exceptions between DSOs not working, how to find cause?
  • Next by Date: Re: Assembler directive?
  • Previous by thread: [solved] Re: Exceptions between DSOs not working, how to find cause?
  • Next by thread: Re: Assembler directive?
  • Index(es):
    • Date
    • Thread