0

In FASM - extrn, in NASM - extern, but what is in AT&T ? I need it in my C program.

  • 3
    You don't need it. [*as treats all undefined symbols as external*](https://sourceware.org/binutils/docs/as/Extern.html#Extern). – rkhb Nov 06 '18 at 18:01
  • If you're defining a variable in asm and needing it in your C program, you want `.globl` in GAS and `extern int foo` in C, like the 2nd duplicate shows. The first duplicate answers the title question like RKHB did. – Peter Cordes Nov 07 '18 at 00:52

0 Answers0