Re: [Tinycc-devel] Problem with reinterpret_cast

2016-01-10 Thread Basile Starynkevitch
use C++11 at least, not some older standard) Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les mi

Re: [Tinycc-devel] RE :Re: Speed of development of a compiler.

2015-11-25 Thread Basile Starynkevitch
On 11/25/2015 06:53 PM, Basile Starynkevitch wrote: On 11/25/2015 05:57 PM, Christian JULLIEN wrote: This exactly what I do with my Lisp compiler. See https://en.wikipedia.org/wiki/OpenLisp#Compiler The compiler targets a very small subset of C which is a peace of cake to compile by any decent

Re: [Tinycc-devel] RE :Re: Speed of development of a compiler.

2015-11-25 Thread Basile Starynkevitch
votre compilateur soit propriétaire! Vous arrivez à vivre de ses licences? Ou bien envisagez vous d'en libérer un jour le code source? Cordialement -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie,

Re: [Tinycc-devel] Speed of development of a compiler.

2015-11-24 Thread Basile Starynkevitch
your emails are incorrectly encoded in KOI-8. I have to correct the encoding in every of my answers. Please change your MUA encoding to UTF8 -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bo

Re: [Tinycc-devel] Speed of development of a compiler.

2015-11-24 Thread Basile Starynkevitch
cheap hardware. (You did not mention anything about your hardware and system). Then, I don't see why you want some native compiler. I you can afford cross-compiling, generating C or GCCJIT or LLVM is very easy. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ e

Re: [Tinycc-devel] Speed of development of a compiler.

2015-11-24 Thread Basile Starynkevitch
provoking and much more relevant to programming languages design that the title is suggesting. Read also his blog on http://bootstrappingartificialintelligence.fr/WordPress3/ Hope this help. I'm waiting to read more about your skills and your languages and your efforts, and other opinions on th

Re: [Tinycc-devel] modern c++ compiler written in C (food for thought)

2015-10-28 Thread Basile Starynkevitch
in C and I started MELT, it needed more RAM and more CPU to get built (and it generated C code, not C++). So it is definitely not a matter of C++. If you want to discuss why is it so (I know quite well the reasons), let us please do so on gcc-m...@googlegroups.com Cheers. -- Basile STA

Re: [Tinycc-devel] modern c++ compiler written in C (food for thought)

2015-10-27 Thread Basile Starynkevitch
tion (e.g. Gimple in GCC) which is the same (or at least mostly overlapping) for C or C++ source code. Notice that GCC even with -O0 is doing *some* optimizations. Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8,

Re: [Tinycc-devel] modern c++ compiler written in C (food for thought)

2015-10-26 Thread Basile Starynkevitch
that this is possible, since it is a domain specific language to extend and customize GCC. See http://gcc-melt.org/ I'm not motivated enough to start coding alone a compiler for C or C++, but I am just suggesting a route for those brave enough (or perhaps crazy enough) to try. Regards.

Re: [Tinycc-devel] modern c++ compiler written in C

2015-10-23 Thread Basile Starynkevitch
5.2 with GCC 4.8 you could replace the last step with compiling Clang/LLVM (e.g. 3.7) with your last GCC Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France

Re: [Tinycc-devel] how hard to add SSE2 opcodes ?

2015-09-10 Thread Basile Starynkevitch
s a major concern, TCC is not the right tool for you. You could consider using some JIT library. See http://stackoverflow.com/a/12322672/841108 which gives more references. Regards. -- Basile Starynkevitch http://starynkevitch.net/Basile/ France ___

Re: [Tinycc-devel] tcc as jit-compiler

2014-10-20 Thread Basile Starynkevitch
e cases where you want it to be compiled with strong optimizations, and then TinyCC is not the right compiler. Cheers. -- Basile Starynkevitch http://starynkevitch.net/Basile/ France ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://

Re: [Tinycc-devel] TCC: Best way to release functions that has been compiled in memory?

2014-01-04 Thread Basile Starynkevitch
some active call frame below the current one, you would crash (with SIGSEGV) when returning into that call frame. Regards, and happy new 2014 year! -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 B

Re: [Tinycc-devel] linking tinycc

2014-01-04 Thread Basile Starynkevitch
rocess (a cc1 or cc1plus started by some other gcc -fplugin=melt). AFAIK, all the major operating systems (Linux, AIX, Windows, Hurd, MacOSX ...) have dynamic loading facilities. Happy new 2014 year to everyone. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile

Re: [Tinycc-devel] unistd.h in new version

2013-03-19 Thread Basile Starynkevitch
o install the libc6-dev package. Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, son

Re: [Tinycc-devel] TinyCC 0.9.26 released

2013-02-16 Thread Basile Starynkevitch
future reference, you should have given an URL to download the source code (e.g. as a .tar.gz file) and preferably, some hash code (e.g. MD5 or SHA1) of it. Cheers PS I'l following the list occasionally, and I am not able to find easily that URL. -- Basile STARYNKEVITCH http://star

Re: [Tinycc-devel] x32 ABI

2012-07-06 Thread Basile Starynkevitch
can run x32, but the pain is that you need kernel support (i.e. configure & compile a very recent kernel, e.g. 3.4.4), libc support, and GCC. So you need to recompile all of kernel + libc (& a GCC x32 cross-compiler) to get it. Cheers -- Basile STARYNKEVITCH http://sta

Re: [Tinycc-devel] Extension to C language

2012-05-31 Thread Basile Starynkevitch
such extensions (in particular builtins) could be implemented by plugins, without requiring changes in core TinyCC. For what it's worth, GCC (4.6 or later) has such plugins. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33

Re: [Tinycc-devel] Use tcc to make embedded just-in-time compile/interpreter

2011-12-18 Thread Basile Starynkevitch
On Sun, 18 Dec 2011 22:01:32 +0100 Benoit Gschwind wrote: > > On 17/12/2011 19:33, Basile Starynkevitch wrote: > > On Fri, 16 Dec 2011 14:31:31 +0100 > > Benoit Gschwind wrote: > > > >> Hello, > >> > >> I would like to create an embedded C

Re: [Tinycc-devel] Use tcc to make embedded just-in-time compile/interpreter

2011-12-17 Thread Basile Starynkevitch
ss can dlopen many thousands *.so files on Linux). You could also use GNU lightning, libjit, or LLVM to generate machine code Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg L

Re: [Tinycc-devel] compile TCC without another compiler

2011-12-14 Thread Basile Starynkevitch
uestion mattered much more. Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} *** _

Re: [Tinycc-devel] Options issues

2011-04-20 Thread Basile Starynkevitch
that the compiler sometimes assumes things and sometimes not. Then you should propose a patch to correct those issues. Don't expect other to work on them! However, I also think (with Rob) that all the issues you raised are not significant issues. Regards! -- Basile STA

Re: [Tinycc-devel] TinyC++

2010-10-29 Thread Basile Starynkevitch
not understood I want to help implement that. I don't have lot of interest and certainly not enough time. BTW, are people able to use reliably tinycc on AMD64/Linux (in 64 bits mode)? I am not... Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitc

Re: [Tinycc-devel] TinyC++

2010-10-19 Thread Basile Starynkevitch
oftware. I believe that if you don't add a GC in your compiler you could be sorry years after. Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only

Re: [Tinycc-devel] TinyC++

2010-10-18 Thread Basile Starynkevitch
API itself is not using all C+ + features (but it depends on the stdc++ library which uses more of them). Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** op

Re: [Tinycc-devel] TinyC++

2010-10-18 Thread Basile Starynkevitch
ld only parse a small subset of C++. One could perhaps imagine using an existing C++ front-end, but that is not tiny anymore. For instance, one could imagine adapting tinyc to the output of the GCC C++ front-end (e.g. to early Gimple or Generic in GCC parlance) but that is not tiny anymore

Re: [Tinycc-devel] tinycc master & amd64 under Linux

2009-12-03 Thread Basile STARYNKEVITCH
grischka wrote: Basile STARYNKEVITCH wrote: Hello All, The master branch of tinycc has been updated recently http://lists.gnu.org/archive/html/tinycc-devel/2009-12/msg3.html I would like to retrieve it, but I am not very familiar with git (used it only once). What are the exact Linux

[Tinycc-devel] tinycc master & amd64 under Linux

2009-12-03 Thread Basile STARYNKEVITCH
generated program crashes, while it does not crash when compiled by many versions of gcc from 4.0 to 4.5 = trunk, or with clang/llvm or gcc-llvm). Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie

[Tinycc-devel] possible bug of tinycc (AMD64) on huge generated C source [MELT branch of GCC]

2009-11-10 Thread Basile STARYNKEVITCH
ould understand that nobody from the TinyCC community cares about it. If you dare investigating that, I will happily answer questions. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bour

Re: [Tinycc-devel] Using TCC as a backbone for our compiler

2009-06-15 Thread Basile STARYNKEVITCH
1.o with gcc-4.4 -O3 textdata bss dec hex filename 21436 0 48 2148453ec ec-pass1.o with gcc-4.4 -Os textdata bss dec hex filename 18150 0 48 181984716 ec-pass1.o with gcc-4.4 -O0 textdata bss dec hex filename 2

Re: [Tinycc-devel] Using TCC as a backbone for our compiler

2009-06-15 Thread Basile STARYNKEVITCH
r some bytecode interpreter (perhaps your own, or Parrot, or JVM, or OcamlVM, or CLI, or NekoVM) BTW, did you consider coding the eC compiler in itself, or in some high level language like Ocaml? Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynke

Re: [Tinycc-devel] Using TCC as a backbone for our compiler

2009-06-13 Thread Basile STARYNKEVITCH
On Sat, Jun 13, 2009 at 5:37 AM, Basile STARYNKEVITCH wrote: Jerome St-Louis wrote: Hi all... We are contemplating using TCC as the backbone engine to generate object code for an eC language Just-In-Time compiler system. Did you consider using something more appropriate for

Re: [Tinycc-devel] Using TCC as a backbone for our compiler

2009-06-13 Thread Basile STARYNKEVITCH
Jerome St-Louis wrote: Hi all... We are contemplating using TCC as the backbone engine to generate object code for an eC language Just-In-Time compiler system. Did you consider using something more appropriate for that purpose, like LLVM or perhaps LibJit? Regards -- Basile STARYNKEVITCH

Re: [Tinycc-devel] release 0.9.25 candidate

2009-05-14 Thread Basile STARYNKEVITCH
-bstarynk/libiberty/cp-demangle.c:4520: constant expression expected The faulty lines are { #ifdef CP_DYNAMIC_ARRAYS __extension__ struct demangle_component comps[di.num_comps]; __extension__ struct demangle_component *subs[di.num_subs]; Regards -- Basile STARYNKEVITCH http

Re: 答复: [Tinycc-devel] Where can I dow nload an old version of tiny cc?

2008-10-09 Thread Basile STARYNKEVITCH
/wiki/Compiler#References Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman Compilers: Principles, Techniques, & Tools, Second Edition Boston: Addison-Wesley, 2007 http://books.google.com/books?id=Pq7pHwG1_OkC&pg=PP1&dq=isbn:1558603204&hl=fr&sig=ACfU3U3qcloTansHvVvc_

Re: 答复: [Tinycc-devel] Where can I down load an old version of tiny cc?

2008-10-09 Thread Basile STARYNKEVITCH
CC is remarkable only by its small size. And it does not do the work that most compilers do. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, so

Re: [Tinycc-devel] Using several instances of TCC?

2008-08-03 Thread Basile STARYNKEVITCH
t, you can dlopen many (=several hundred thousands at least) dynamic shared libraries. Tinycc generates very quickly quite poor code. You probably want to generate a bit more slowly some better performing code. If it is the case, the other solutions are better suited. Regards. -- Basile STA

Re: [Tinycc-devel] Using TinyCC with GPL

2008-06-06 Thread Basile STARYNKEVITCH
p-s (e.g SBCL), several Java JVM, next version of Ocaml, some Haskells, .. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulemen

Re: [Tinycc-devel] Using TinyCC with GPL

2008-06-06 Thread Basile STARYNKEVITCH
using C (or any other unsafe language) as a scripting language is a good idea. The last thing you want from a scripting language is to core dump. You need errors to be caught. This is not the case in C. If you want a scripting language, consider other options. -- Basile STARYNKEVIT

Re: [Tinycc-devel] Introspection

2008-04-21 Thread Basile STARYNKEVITCH
.org/software/lightning/ For libjit, use the CVS since it is working on AMD64. If you really are interested in generating C code from Lisp, look at bigloo, stalin, chicken, and my MELT work on GCC. http://gcc.gnu.org/wiki/MiddleEndLispTranslator -- Basile STARYNKEVITCH

Re: [Tinycc-devel] TCC as portable module compiler

2008-03-18 Thread Basile STARYNKEVITCH
software (MIT-like license). Also llvm is rather well documented, and alive (much more than tinycc, which seems almost dead). -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine

Re: [Tinycc-devel] TCC as portable module compiler

2008-03-18 Thread Basile STARYNKEVITCH
e is really a myth. Tinycc generates very quickly bad machine code. People disliking gcc might also have a look at llvm http://llvm.org -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bour

Re: [Tinycc-devel] 4 bugfixes for Rob Landley's revision 470

2007-09-06 Thread Basile STARYNKEVITCH
ng my way through the code taking notes with vague ideas of turning them into a HACKING file or the like. If you consider starting TCC from scratch you might look into other small open source compilers like http://sourceforge.net/projects/nwcc/ -- Basile STARYNKEVITCH http://stary

Re: [Tinycc-devel] ppc target for tcc, alternatives

2007-01-11 Thread Basile STARYNKEVITCH
mised, you might consider LLVM (which probably have JIT ability on PowerPC) You might also have a look into libjit and Parrotcode http://www.gnu.org/software/lightning/lightning.html http://savannah.gnu.org/projects/lightning/ http://llvm.org/ http://www.southern-storm.com.au/libjit.html

Re: [Tinycc-devel] Porting TCC to RTLinux

2006-11-22 Thread Basile STARYNKEVITCH
Le Thu, Nov 23, 2006 at 07:25:48AM +0100, Basile STARYNKEVITCH écrivait/wrote: > > And BTX tinycc generate machine code which is not better than what > you'll get with lightning, and which could be worse that what you get > with libjit. > > Kernel code have severe constrai

Re: [Tinycc-devel] Porting TCC to RTLinux

2006-11-22 Thread Basile STARYNKEVITCH
constraints - you mentioned the 4k stack . So you probably should put entirely a full compiler in it. And as you mentioned, C is already too low level for you. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faïen

Re: [Tinycc-devel] Porting TCC to RTLinux

2006-11-22 Thread Basile STARYNKEVITCH
rg/projects/lightning/ 4. http://www.gnu.org/software/lightning/lightning.html 5. http://www.southern-storm.com.au/libjit.html 6. http://www.parrotcode.org/ -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faïencerie, 9