[Tinycc-devel] Re: static const not recognized as const value?

2010-12-27 Thread Jared Maddox
> Date: Mon, 27 Dec 2010 14:50:06 +0100 > From: Stephan Beal > Subject: [Tinycc-devel] static const not recognized as const value? > To: tinycc-devel@nongnu.org > Message-ID: >         > Content-Type: text/plain; charset="iso-8859-1" > > Hi, TCCers! > > (This is my first post to the list.) > > Eve

Re: [Tinycc-devel] static const not recognized as const value?

2010-12-27 Thread Stephan Beal
On Mon, Dec 27, 2010 at 6:03 PM, Aharon Robbins wrote: > The answer is that this feature is not in C. It is in C++, which > may be why you think it ought to work. :-) > Aha, so all this time i've been using a gcc extension without knowing it. Bummer :(. Thanks for the tip, though. -- - s

Re: [Tinycc-devel] newbie questions

2010-12-27 Thread grischka
CHEN-CHAU CHU wrote: hi, folks, I am learning to use tcc. I need some help in using libtcc. I am not sure this is the right place to ask such questions, please direct me to the proper places. (1) it seems to me I cannot perform incremental compiling, to parse one string, relocate, run, then pa

Re: [Tinycc-devel] static const not recognized as const value?

2010-12-27 Thread Aharon Robbins
Hi. The answer is that this feature is not in C. It is in C++, which may be why you think it ought to work. :-) I too am amazed by tcc's speed. When I use it to compile gawk, though, three of my tests, all related to wide characters, fail. I haven't time to investigate why, though. HTH, Arnol

[Tinycc-devel] static const not recognized as const value?

2010-12-27 Thread Stephan Beal
Hi, TCCers! (This is my first post to the list.) Every now and then i write code like the following: static const size_t sz = 1024 * 2; char buffer[sz]; ... tcc complains that sz is not a constant expression, which "just doesn't seem right" to me. It does of course accept: enum { sz = 1024 * 2