Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-14 Thread Domingo Alvarez Duarte
, Jared Maddox absinthdr...@gmail.comwrote: Date: Sat, 12 Jan 2013 23:33:48 +0100 From: grischka gris...@gmx.de To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] Added virtual io to tinycc Message-ID: 50f1e4cc.6000...@gmx.de Content-Type: text/plain; charset=UTF-8; format=flowed

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-14 Thread Thomas Preud'homme
Le lundi 14 janvier 2013 03:54:27, Jared Maddox a écrit : [SNIP] The main nuisance is that searching for the right file will be slow. If you want speed AND flexibility, then you want to write a string-table implementation so that your file/folder searches go faster. Really, most of the

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-14 Thread grischka
Thomas Preud'homme wrote: Also, we are trying to stabilize tcc in order to make a new release (see [1]) so it would be nice if this could avoid as much as possible to touch the current code. I would personally have preferred that this commit is reverted for now ... I agree. ... and

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-13 Thread Jared Maddox
Date: Sat, 12 Jan 2013 23:33:48 +0100 From: grischka gris...@gmx.de To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] Added virtual io to tinycc Message-ID: 50f1e4cc.6000...@gmx.de Content-Type: text/plain; charset=UTF-8; format=flowed Domingo Alvarez Duarte wrote: Let's see if I

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread grischka
Domingo Alvarez Duarte wrote: Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable. [...] I hope this will improve the utility of tinycc. It's on mob:repository. Thanks in advance

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread Domingo Alvarez Duarte
Let's see if I can explain it better. The modifications I did was replace: fd - fd or fd-fd depending on the context fd = -1; - void vio_initialize(vio_fd *fd); fd = open(file_name, mode) - int vio_open(struct TCCState *s, vio_fd *fd, const char *fn, int oflag); pos = lseek(fd, offset, whence); -

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-12 Thread grischka
Domingo Alvarez Duarte wrote: Let's see if I can explain it better. The modifications I did was replace: fd - fd or fd-fd depending on the context [...] Indeed switching tinycc to cope with struct fd was a bad decision to begin with. Under any circumstances I'd recommend to switch your

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-11 Thread Domingo Alvarez Duarte
The idea is the same, but I think that I did it in a more general adding the virtual io to tinycc with any source can be easily used like databases, compressed files, Main code of vio: /* virtual io */ LIBTCCAPI void tcc_set_vio_module(TCCState *s, vio_module_t *vio_module){ s-vio_module =

[Tinycc-devel] Added virtual io to tinycc

2013-01-10 Thread Domingo Alvarez Duarte
Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable. Tested under linux exec the mk-it shell script and you'll end up with a portable tinycc executable that doesn't depend on anything

Re: [Tinycc-devel] Added virtual io to tinycc

2013-01-10 Thread u-tcc-uepj
Hello Domingo, On Fri, Jan 11, 2013 at 12:23:35AM +, Domingo Alvarez Duarte wrote: Added what I call virtual io to tinycc this way we can make a monolitic executable or library that contains all needed to compile programs, truly tinycc portable. Tested under linux exec the mk-it shell