Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Sylvain BERTRAND
>>> Thoughts? >> >> Wow... :) You totally missed my point. >> >> My idea is to have a langage which has a lower implementation >> technical cost. That's why I was saying "the other way". > > > > Are you talking about the IL/IC, or the other one we were talking > about? Because I talked about two t

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Jared Maddox
> Date: Mon, 23 Sep 2013 14:22:16 +0200 > From: Sylvain BERTRAND > To: tinycc-devel@nongnu.org > Subject: Re: [Tinycc-devel] inline assembly and optimization passes > Message-ID: <20130923122216.GB754@freedom> > Content-Type: text/plain; charset=us-ascii > >> Thoughts? > > Wow... :) You totally mi

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Sylvain BERTRAND
On Mon, Sep 23, 2013 at 05:05:35PM +0200, Vittorio Giovara wrote: > On Mon, Sep 23, 2013 at 3:45 PM, Thomas Preud'homme wrote: >> Le lundi 23 septembre 2013 14:31:04 Vittorio Giovara a écrit : >>> >>> In my opinion, tinycc can remain without optimizations because it is >>> not one of the compiler

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Vittorio Giovara
On Mon, Sep 23, 2013 at 3:45 PM, Thomas Preud'homme wrote: > Le lundi 23 septembre 2013 14:31:04 Vittorio Giovara a écrit : >> >> In my opinion, tinycc can remain without optimizations because it is >> not one of the compiler design goals. >> However there is one optimization that's more like a fe

[Tinycc-devel] GTK+

2013-09-23 Thread Sylvain BERTRAND
Hi, I wonder if anyone was successful to compile a GTK+ stack with tinycc (namely the full stack from the glib)? -- Sylvain ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Sylvain BERTRAND
> In my opinion, tinycc can remain without optimizations because it is > not one of the compiler design goals. Yes, it's very important the optimization passes disrupt the least possible the internals of tcc, we all agree on that. That's why a new independent target would be a very good idea, and

Re: [Tinycc-devel] Feature request: _Thread_local (and a possible bug)

2013-09-23 Thread Robert Clausecker
Hello Thomas, Thank you for your answer. Am Montag, den 23.09.2013, 13:02 +0200 schrieb Thomas Preud'homme: > Le mercredi 21 août 2013 19:41:40 Robert Clausecker a écrit : > > Dear tcc hackers, > > > > It would be very nice if tcc could implement the _Thread_local (aka > > __thread) storage cla

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Thomas Preud'homme
Le lundi 23 septembre 2013 14:31:04 Vittorio Giovara a écrit : > > In my opinion, tinycc can remain without optimizations because it is > not one of the compiler design goals. > However there is one optimization that's more like a feature these > days: dead code elimination. > There are quite a fe

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Vittorio Giovara
On Fri, Sep 20, 2013 at 3:08 AM, Sylvain BERTRAND wrote: > Hi, > > > > I wonder if the internals of tinycc can easily supports basic > optimization passes. The idea is not to compete with gcc and its > hundred of passes, but my guess is that very few optimization > passes would be required to

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Sylvain BERTRAND
> Sorry about the delay, I receive digests, so I didn't get this until > after I'd sent out my last message. > > The reason why C is normally not used as an IL/IC is because you can > design languages that are easier to parse than C. Simple as that. Your > stereo typical assembly language, where e

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Sylvain BERTRAND
> Thoughts? Wow... :) You totally missed my point. My idea is to have a langage which has a lower implementation technical cost. That's why I was saying "the other way". -- Sylvain ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.n

Re: [Tinycc-devel] Feature request: _Thread_local (and a possible bug)

2013-09-23 Thread Thomas Preud'homme
Le mercredi 21 août 2013 19:41:40 Robert Clausecker a écrit : > Dear tcc hackers, > > It would be very nice if tcc could implement the _Thread_local (aka > __thread) storage class specified. This would make it much easier for me > to compile my C code with tcc as it is one of the few parts of C11

Re: [Tinycc-devel] Stack Overflow question about jmp

2013-09-23 Thread grischka
Thomas Preud'homme wrote: x86_64-asm.h defines 3 kind of jmp instruction, 2 of them being: ALT(DEF_ASM_OP1(jmp, 0xff, 4, OPC_MODRM, OPT_INDIR)) ALT(DEF_ASM_OP1(jmp, 0xff, 0, OPC_JMP | OPC_WL, OPT_REGW)) so basically the star select between the two. *%eax means indirection so first kind, %eax me

Re: [Tinycc-devel] inline assembly and optimization passes

2013-09-23 Thread Jared Maddox
> Date: Sun, 22 Sep 2013 18:39:00 +0200 > From: Sylvain BERTRAND > To: tinycc-devel@nongnu.org > Subject: Re: [Tinycc-devel] inline assembly and optimization passes > Message-ID: <20130922163900.GC741@freedom> > Content-Type: text/plain; charset=us-ascii > > On Sat, Sep 21, 2013 at 12:02:58AM -050

Re: [Tinycc-devel] library search path

2013-09-23 Thread Vittorio Giovara
On Sat, Sep 21, 2013 at 11:27 PM, Thomas Preud'homme wrote: > Le samedi 21 septembre 2013 23:19:47 grischka a écrit : >> Thomas Preud'homme wrote: >> > Le samedi 21 septembre 2013 16:50:49 Vittorio Giovara a écrit : >> >> Ping on the patch below. >> >> If it is ok could it be applied? >> > >> > Lo