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
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
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,
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
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
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
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
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,
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.
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
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
___
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://
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
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
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
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
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
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
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
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
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} ***
_
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
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
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
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
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
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
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
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
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
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
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
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
-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
/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_
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
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
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
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
.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
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
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
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
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
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
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
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
47 matches
Mail list logo