Re: [Tinycc-devel] Introspection

2008-04-21 Thread Basile STARYNKEVITCH
Sebastien Loisel wrote: Dear TCC, I was eyeing tcc today for a possible little toy experiment, to implement a micro-lisp and using tcc for dynamic code generation. You might also consider using LLVM or libjit for that purpose. http://llvm.org/ http://www.gnu.org/projects/dotgnu/ With TCC, yo

[Tinycc-devel] Introspection

2008-04-21 Thread Sebastien Loisel
Dear TCC, I was eyeing tcc today for a possible little toy experiment, to implement a micro-lisp and using tcc for dynamic code generation. One thing that would be way cool would be to be able to load a DLL or compile a C program to memory, and then list all of its symbols, returning them perhaps

Re: [Tinycc-devel] linux/unix shared libraries?

2008-04-21 Thread grischka
Works for me. (on ubuntu 6.02) --- grischka From: "Olaf Dietrich": > The simple question is: Is it or has it ever been possible to > compile shared libraries with tcc under linux/unix? > > Here is a very simple test case: > > > $ cat mylib.c > > int func(void) > { > return 12345; > }

Re: [Tinycc-devel] linux/unix shared libraries?

2008-04-21 Thread David Given
Olaf Dietrich wrote: [...] The simple question is: Is it or has it ever been possible to compile shared libraries with tcc under linux/unix? IIRC, the answer is no, because tcc does not generate position-independent code. -- David Given [EMAIL PROTECTED] ___

Re: [Tinycc-devel] linux/unix shared libraries?

2008-04-21 Thread Mike Aubury
I'm interested in this one too - including the ability to 'dlopen' the shared library once created... On Monday 21 April 2008 09:11:23 Olaf Dietrich wrote: > Hi, > > The simple question is: Is it or has it ever been possible to > compile shared libraries with tcc under linux/unix? > > Here is a v

[Tinycc-devel] linux/unix shared libraries?

2008-04-21 Thread Olaf Dietrich
Hi, The simple question is: Is it or has it ever been possible to compile shared libraries with tcc under linux/unix? Here is a very simple test case: $ cat mylib.c int func(void) { return 12345; } $ cat testlib.c #include extern int func(void); int main(void) { printf("%