[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] S-Lang tinycc module.
From: |
Ag. D.E Chatzimanikas |
Subject: |
Re: [Tinycc-devel] S-Lang tinycc module. |
Date: |
Wed, 28 Mar 2018 20:03:00 +0300 |
User-agent: |
Mutt/1.9.0 (2017-09-02) |
On Tue, Mar 27, at 07:04 grischka wrote:
> Agathoklis D. Chatzimanikas wrote:
> > On Fri, Mar 23, at 08:58 grischka wrote:
> > > Agathoklis D.E Chatzimanikas wrote:
> > > > Hi,
> > > >
> > > > I created a tinycc binding for the S-Lang programming language,
> > > >
> > > > https://github.com/agathoklisx/slang-devel/tree/master/slang-modules/tcc
> > > >
> > > > and while I was trying to create an executable, I had to use:
> > > >
> > > > tcc_set_options (tcc_handler, "-xn");
> > > >
> > > > which sets tcc_handler->filetype to AFF_TYPE_NONE,
> > > > otherwise (the path) elf_output_file() -> tcc_add_runtime()
> > > > tries to compile /usr/local/lib/tcc/libtcc1.a when it calls
> > > >
> > > > tcc_add_support(s1, TCC_LIBTCC1);
> > > >
> > > > I was wondering if there is a better librar"iezed" way.
> > > I guess that is a bug in tcc.
> > >
> > > tcc_add_file() probably should preserve (save/restore) the original
> > > value of s->filetype.
> > >
> > > Also, tcc_add_runtime() probably should reset s->filetype to
> > > AFF_TYPE_NONE at entry.
> > >
> > > I admit that the filetype stuff isn't really clean but maybe with
> > > these adjustments it could work. If you can fix it on the mob branch,
> > > welcome.
> > >
> > > Thanks,
> > >
> >
> > @grischka,
> >
> > If it is that simple, could you make these changes? I mean you have my
> > permission to do them. ...
>
> Everyone has permission, but yes, at some point I guess I will fix that.
> (The more since obviously it was me who wrote the bug ;)
It bugs me when you say that word :). It's not a bug in tcc, its a bug in C.
But, you went too far pilgrim! You've been plead guilty (thats unusual thing
to say).
But, anyone not guilty, here? Noone?
And i though at 52 that there is not such thing like perfection.
> Maybe I'll wait for a while for what other bugs you will discover ...
I'm afraid you have to wait a lot.
> Thanks,
>
> --- grischka
Many thanks (again),
Αγαθοκλής