Lee Duhem | 15 Dec 09:47 2014
Picon

[PATCH] Fix parsing of binary floating point number

Hi,

It looks like tcc cannot parse binary floating number currently. This
patch fixes
that and also add some test cases for this problem.

Any comment?

Sincerely,
lee
Hi,

It looks like tcc cannot parse binary floating number currently. This
patch fixes
that and also add some test cases for this problem.

Any comment?

Sincerely,
lee
Lee Duhem | 15 Dec 09:44 2014
Picon

[PATCH] tcc.h (BufferedFile): Remove unnecessary static memory allocation

Hi,

The memory needed by `buffer' will be allocated in `tcc_open_bf',
these is no need to allocate them in BufferedFile statically.

Any comment?

lee
Hi,

The memory needed by `buffer' will be allocated in `tcc_open_bf',
these is no need to allocate them in BufferedFile statically.

Any comment?

lee
Lee Duhem | 15 Dec 09:42 2014
Picon

[PATCH] libtcc.c (put_extern_sym2): Extend the scope of buf to match its use

Hi,

In `put_extern_sym2', after leaving the code block that `buf' is
defined, `buf' will not
exist, so `name' will point to a variable that does not exist. This
patch fixes that.

Any comment?

Sincerely,
lee
Hi,

In `put_extern_sym2', after leaving the code block that `buf' is
defined, `buf' will not
exist, so `name' will point to a variable that does not exist. This
patch fixes that.

Any comment?

Sincerely,
lee
Lee Duhem | 15 Dec 09:40 2014
Picon

[PATCH] .gitignore: Ignore Emacs temporary files

Hi,

This patch adds patterns to .gitignore to ignore Emacs temporary files.

Sincerely,
lee
Hi,

This patch adds patterns to .gitignore to ignore Emacs temporary files.

Sincerely,
lee
stephen Turner | 9 Dec 07:19 2014
Picon

TCC as default compiler

I have found tcc and wondered how viable it is as a alternative to gcc and clang/llvm for my uses. I checked the website but it appears to have been dead for several years.

Does it use makefiles?
can it be a simple drop in replacement for GCC (atleast for c if not c++ too)

i have done a few quick serches but it seems either information is not readily available or im not asking the right questions.

I see the git has recent development unlike the website. I was hoping once built, tcc could be set as the compiler by a simple CC=tcc and then one could compile code same as with gcc by ./configure make and make install.

From what i have read so far its only a c compiler? Or is it being built out to support c++ as well?

thanks for your time and advice/answers
stephen
<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>I have found tcc and wondered how viable it is as a alternative to gcc and clang/llvm for my uses. I checked the website but it appears to have been dead for several years. <br><br>
</div>Does it use makefiles? <br>
</div>can it be a simple drop in replacement for GCC (atleast for c if not c++ too)<br>
</div>
<br>
</div>i have done a few quick serches but it seems either information is not readily available or im not asking the right questions.<br><br>
</div>I see the git has recent development unlike the website. I was hoping once built, tcc could be set as the compiler by a simple CC=tcc and then one could compile code same as with gcc by ./configure make and make install.<br><br>
</div>From what i have read so far its only a c compiler? Or is it being built out to support c++ as well?<br>
</div>
<div><br></div>thanks for your time and advice/answers<br>
</div>stephen<br>
</div></div>
Christian JULLIEN | 4 Dec 09:17 2014
Picon

RE : CFront for TinyCC? (Was: Re: Re: global 64-bit variables initialization)

Having the rights to use CFRONT 3.0.3 is far from clear.
For common usages, CFRONT 3.0.3 is close to 'modern C++' and it's easy to download the latest source code from http://www.softwarepreservation.org/projects/c_plus_plus.
With probably little efforts, we could have this front end working well with tcc.
Except mentions to AT&T Copyrights in source code:

Copyright (c) 1993  UNIX System Laboratories, Inc.
Copyright (c) 1991, 1992 AT&T and UNIX System Laboratories, Inc.
Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.

THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX System
Laboratories, Inc.  The copyright notice above does not evidence
any actual or intended publication of such source code.

There is no information about the rights to use this material.
On softwarepreservation download page we can read:

NOTICE

The source code in this section is posted with the permission of the copyright owner for historical research purposes only.


If put efforts to have a tcc backend for CFRONT, we should only supply Makefile and .patch for AT&T source file with a similar notice:

"tcc backend support for AT&T CFRONT is provided for historical research purpose only."


----- message d'origine -----
De : "Roy Tam" <roytam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
date jeu. 04/12/2014 07:41 (GMT +01:00)
À : "tinycc-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org" <tinycc-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org>, "grischka" <grishka-Mmb7MZpHnFY@public.gmane.org>
Objet : [Tinycc-devel] CFront for TinyCC? (Was: Re: Re: global 64-bit variables initialization)

Hello,

from an old thread (
https://lists.gnu.org/archive/html/tinycc-devel/2008-11/msg00024.html
) :

>> Also would be nice to have some C++ support, but it could be very difficult, I lost the hope to have a superfast C++ compiler.
>
>I once have made some experiments with the historical "CFRONT AT&T C++
>to C Translators", with TCC used for the PP and the C to OBJ part.
>
>It works quite well, with both cfront 1.0 (1986) and cfront 3.0.3 (1997).
>If someone is interested I can post more information. Note however that
>even the latter version is not about today's C++ (although close already).
>

grischka, I wonder if you can give more details about this (and
hopefully with source files).
Thanks.

Regards,
Roy

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
<div>
<p>Having the rights to use CFRONT 3.0.3 is far from clear.<br>For common usages, CFRONT 3.0.3 is close to 'modern C++' and it's easy to download the latest source code from http://www.softwarepreservation.org/projects/c_plus_plus.<br>With probably little efforts, we could have this front end working well with tcc.<br>Except mentions to AT&amp;T Copyrights in source code:<br><br>Copyright (c) 1993&nbsp; UNIX System Laboratories, Inc.<br>Copyright (c) 1991, 1992 AT&amp;T and UNIX System Laboratories, Inc.<br>Copyright (c) 1984, 1989, 1990 AT&amp;T.&nbsp; All Rights Reserved.<br><br>THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&amp;T and UNIX System<br>Laboratories, Inc.&nbsp; The copyright notice above does not evidence<br>any actual or intended publication of such source code.<br><br>There is no information about the rights to use this material.<br>On softwarepreservation download page we can read:<br></p>
<h3>NOTICE</h3>

The source co<span class="highlightedSearchTerm">d</span>e in this section is poste<span class="highlightedSearchTerm">d</span> with the permission of the copyright owner for historical research purposes only.<br><br><br>If put efforts to have a tcc backend for CFRONT, we should only supply Makefile and .patch for AT&amp;T source file with a similar notice:<br><br>"tcc backend support for AT&amp;T CFRONT is provided for historical research purpose only."<br><br><br><blockquote>----- message d'origine -----<br>De : <span dir="ltr">"Roy Tam"</span> <span dir="lrt">&lt;roytam@...&gt;</span><br>date jeu. 04/12/2014 07:41 (GMT +01:00)<br>&Agrave; : <span dir="ltr">"tinycc-devel@..."</span> <span dir="lrt">&lt;tinycc-devel@...&gt;</span>, <span dir="ltr">"grischka"</span> <span dir="lrt">&lt;grishka@...&gt;</span><br>Objet : [Tinycc-devel] CFront for TinyCC? (Was: Re: Re: global 64-bit variables initialization)<br><br>Hello,<br><br>from an old thread (<br>https://lists.gnu.org/archive/html/tinycc-devel/2008-11/msg00024.html<br>) :<br><br>&gt;&gt; Also would be nice to have some C++ support, but it could be very difficult, I lost the hope to have a superfast C++ compiler.<br>&gt;<br>&gt;I once have made some experiments with the historical "CFRONT AT&amp;T C++<br>&gt;to C Translators", with TCC used for the PP and the C to OBJ part.<br>&gt;<br>&gt;It works quite well, with both cfront 1.0 (1986) and cfront 3.0.3 (1997).<br>&gt;If someone is interested I can post more information.  Note however that<br>&gt;even the latter version is not about today's C++ (although close already).<br>&gt;<br><br>grischka, I wonder if you can give more details about this (and<br>hopefully with source files).<br>Thanks.<br><br>Regards,<br>Roy<br><br>_______________________________________________<br>Tinycc-devel mailing list<br>Tinycc-devel@...<br>https://lists.nongnu.org/mailman/listinfo/tinycc-devel<br>
</blockquote>
</div>
Roy Tam | 4 Dec 07:40 2014
Picon

CFront for TinyCC? (Was: Re: Re: global 64-bit variables initialization)

Hello,

from an old thread (
https://lists.gnu.org/archive/html/tinycc-devel/2008-11/msg00024.html
) :

>> Also would be nice to have some C++ support, but it could be very difficult, I lost the hope to have a
superfast C++ compiler.
>
>I once have made some experiments with the historical "CFRONT AT&T C++
>to C Translators", with TCC used for the PP and the C to OBJ part.
>
>It works quite well, with both cfront 1.0 (1986) and cfront 3.0.3 (1997).
>If someone is interested I can post more information.  Note however that
>even the latter version is not about today's C++ (although close already).
>

grischka, I wonder if you can give more details about this (and
hopefully with source files).
Thanks.

Regards,
Roy

David Mertens | 26 Nov 12:55 2014
Picon

Re: [PATCH 3/4] Makefile: Add rules to create tags and TAGS.

I don't use ctags, but I'm sure that those who do would appreciate this.

On Wed, Nov 26, 2014 at 3:06 AM, Lee Duhem <lee.duhem-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

This patch adds rules to create and remove tags files.

Sincerely,
lee

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
<div>
<div dir="ltr"><div>I don't use ctags, but I'm sure that those who do would appreciate this.<br>
</div></div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Nov 26, 2014 at 3:06 AM, Lee Duhem <span dir="ltr">&lt;<a href="mailto:lee.duhem@..." target="_blank">lee.duhem@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Hi,<br><br>
This patch adds rules to create and remove tags files.<br><br>
Sincerely,<br>
lee<br><br>_______________________________________________<br>
Tinycc-devel mailing list<br><a href="mailto:Tinycc-devel@...">Tinycc-devel@...</a><br><a href="https://lists.nongnu.org/mailman/listinfo/tinycc-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/tinycc-devel</a><br><br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br><div class="gmail_signature">&nbsp;"Debugging is twice as hard as writing the code in the first place.<br>
 &nbsp; Therefore, if you write the code as cleverly as possible, you are,<br>
 &nbsp; by definition, not smart enough to debug it." -- Brian Kernighan<br>
</div>
</div>
</div>
Lee Duhem | 26 Nov 09:15 2014
Picon

[PATCH 4/4] tcc.[ch]: Adjust code style.

Hi,

This also basically is a code style adjustment patch.
Changes included in this patch:

1. remove tailing spaces;
2. adjust some spaces around operators;
3. replace `const == var` with `var == const`, to make
them consistent with the around code.

This patch should make the code style in tcc.[ch] more
consistent.

Sincerely,
lee
Hi,

This also basically is a code style adjustment patch.
Changes included in this patch:

1. remove tailing spaces;
2. adjust some spaces around operators;
3. replace `const == var` with `var == const`, to make
them consistent with the around code.

This patch should make the code style in tcc.[ch] more
consistent.

Sincerely,
lee
Lee Duhem | 26 Nov 09:06 2014
Picon

[PATCH 3/4] Makefile: Add rules to create tags and TAGS.

Hi,

This patch adds rules to create and remove tags files.

Sincerely,
lee
Hi,

This patch adds rules to create and remove tags files.

Sincerely,
lee
Lee Duhem | 26 Nov 09:04 2014
Picon

[PATCH 2/4] .gitignore: Ignore generated files.

Hi,

Add more patterns to `.gitignore` to ignore some common
generated files: a.out, *.exe, *.log, and TAGS.

Sincerely,
lee
Hi,

Add more patterns to `.gitignore` to ignore some common
generated files: a.out, *.exe, *.log, and TAGS.

Sincerely,
lee

Gmane