|
From: | Sergey Korshunoff |
Subject: | [Tinycc-devel] tips? define asm symbol as global if it is extern in C |
Date: | Mon, 18 May 2015 12:25:51 +0300 |
Hello all! tcc fails to compile the following program extern void vide(void); #ifndef TCC_OK __asm__(".align 4\nvide: ret"); // tcc: error: undefined symbol 'vide' #else __asm__(".align 4\n.globl vide\nvide: ret"); #endif int main (void) { vide(); } What the problem with tcc? Why tcc need ".globl vide" in asm code and gcc can compile w/o this declaration?
[Prev in Thread] | Current Thread | [Next in Thread] |