[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] asm labels
From: |
Thomas Preud'homme |
Subject: |
[Tinycc-devel] asm labels |
Date: |
Fri, 10 Sep 2010 20:28:13 +0200 |
User-agent: |
KMail/1.13.5 (Linux/2.6.32-5-686; KDE/4.4.5; i686; ; ) |
Greetings everyone,
I've just added support for asm labels for functions. The syntax is the same
as in gcc:
==== test1.c ====
int foo(void) __asm__("bar");
int main(void)
{
return foo();
}
==== test2.c ====
#include <stdio.h>
int foo(void)
{
puts("foo called);
return 0;
}
int bar(void)
{
puts("bar called");
return 0;
}
and then tcc -o test test1.c test2.c && ./test will print "bar called".
Asm label will come in another commit. Relevant commit for this change is
9b09fc3
Best regards,
Thomas Preud'homme
fct_asm_label.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] asm labels,
Thomas Preud'homme <=