Re: [Tinycc-devel] State of the tcc project (jiang)

2014-06-21 Thread lifenjoiner
Hi, On Behalf Of jiang index 22a8278..2fd4614 100644 @@ -1655,6 +1655,15 @@ void bitfield_test(void) else printf(st1.f2 != -1\n); +/* XXX: gcc bug My logic is: If it is a bug, why we should follow a wrong way? Aidan Dodds wrote: It looks like you are trying to

Re: [Tinycc-devel] State of the tcc project (jiang)

2014-06-21 Thread grischka
jiang wrote: /* bitfield store handling */ +SValue tmp; +tmp = vtop[0]; [...] +vtop--; +vpushv(tmp); This is still not a solution. See #include stdio.h int main(int argc, char **argv) { struct { unsigned a:9, b:5, c:7;

Re: [Tinycc-devel] suggestion: accept def file in compatible way

2014-06-21 Thread grischka
lifenjoi...@163.com wrote: One way is reproduce them all by tiny_impdef or don't use them but produce the one when needed. It's OK. As you say it's OK and that is good enough for this project. You can create another project to provide complete library and header sets for tcc on windows

Re: [Tinycc-devel] suggestion: accept def file in compatible way

2014-06-21 Thread lifenjoiner
Hi grischka, I'm not intending to do it and agree with you. What about to document the def file is incompatible to mingw's explicitly? You have recommended MinGW's w32api. It is a suite, and also contents def file that would cause undefined symbol problem. Best wishes, YX Hao -Original

[Tinycc-devel] run vs compiling

2014-06-21 Thread Markus Bergholz
Hi, I can run lua with tcc live like that ~$ wget http://www.lua.org/ftp/lua-5.2.3.tar.gz --2014-06-21 12:26:18-- http://www.lua.org/ftp/lua-5.2.3.tar.gz Auflösen des Hostnamen »www.lua.org (www.lua.org)«... 148.251.24.173, 2a01:4f8:201:620f::2001 Verbindungsaufbau zu www.lua.org

Re: [Tinycc-devel] run vs compiling

2014-06-21 Thread Daniel Glöckner
On Sat, Jun 21, 2014 at 03:44:27PM +0200, Markus Bergholz wrote: ~$ tcc *[^ca].c lgc.c lfunc.c -run lua.c Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio So far so good, but how can I compile/create binarys with tcc from lua? ~$ tcc *[^ca].c lgc.c lfunc.c tcc: error: undefined

Re: [Tinycc-devel] run vs compiling

2014-06-21 Thread Markus Bergholz
On Sat, Jun 21, 2014 at 4:01 PM, Daniel Glöckner daniel...@gmx.net wrote: On Sat, Jun 21, 2014 at 03:44:27PM +0200, Markus Bergholz wrote: ~$ tcc *[^ca].c lgc.c lfunc.c -run lua.c Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio So far so good, but how can I compile/create

Re: [Tinycc-devel] run vs compiling

2014-06-21 Thread Daniel Glöckner
On Sat, Jun 21, 2014 at 04:25:24PM +0200, Markus Bergholz wrote: Yes, this works. But why tcc don't need the -lm option when using -run? Because tcc itself is already linked to libm. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

[Tinycc-devel] win link stage: sth about resource object file section name compare

2014-06-21 Thread lifenjoiner
Hi grischka and there, You experienced, I want to ask a question about section name on windows. I find a smaller resource file compiler GoRC (http://www.godevtool.com/) than windres. It also contents the basic definitions inside (don't need specify -I option). It generate coff format object

Re: [Tinycc-devel] Tinycc-devel Digest, Vol 134, Issue 16

2014-06-21 Thread jiang
This is my patch (see Annex) tcc result is correct -- 254 / 30 / 126 1 1 1 1 1 1 1 0 - 254 254 0x7f (c:7) 1 1 1 1 1 1 1 0 - 254 0 1 1 1 1 1 1 1 - 0x7f -- 0 1 1 1 1 1 1 0 - 126 (b:5) 0 1 1 1 1 1 1 0 - 126 0 0 0 1 1 1 1 1 - 0x1f -- 0 0 0 1 1 1 1

Re: [Tinycc-devel] Is static linking functional?

2014-06-21 Thread Wendell P
I have tried a few methods to produce an MSVCRT in ELF format suitable for static linking with TCC on Windows, but so far no success. If you have actually done it yourself, how did you do it? -- http://www.fastmail.fm - Access all of your messages and folders wherever