Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • A compiled object file has no idea whether it was compiled from C, or assembled from assembly language. Commented Sep 9, 2016 at 22:33
  • @PaulGriffiths how does the compiler know where the symbol thats in the asm file is when its compiling the swift module? Commented Sep 9, 2016 at 22:41
  • In exactly the same way that it knows where the symbol is with a C source file - it looks it up in the symbol table of the object file. Commented Sep 9, 2016 at 22:43
  • @PaulGriffiths but I haven't told the compiler to link it. is there a special flag I need to pass in or something? Commented Sep 9, 2016 at 22:54
  • This question may be helpful. Commented Sep 9, 2016 at 22:57