|
From: | Fabrice Bellard |
Subject: | Re: [Tinycc-devel] here is the patch |
Date: | Wed, 16 Apr 2003 23:43:03 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020828 |
Vladimir Moushkov wrote:
:) As "outputs memory" i mean tcc directy executes the compiled code.btw in using tcc as interpreter mode you cannot use more than one argument because tcc recognize all arguments as one. so #!/bin/tcc -I/usr/include/sys -L/lib will be taken as:#!/bin/tcc "-I/usr/include/sys -L/lib"this is because thekernel (or the lib c??) takes all the argumetns in one argv[1] file paramter as argv[2]. It is possible to recognize more than parameter if we makes parser for that.
It is the kernel which does that. If you do a parser to split the args then I'll integrate it with your "tci" patch in tcc. IMHO argv[1] should be split only if tcc is invoked as tci. Could you also use the tcc_basename() I just added to simplify your code ?
Fabrice.
[Prev in Thread] | Current Thread | [Next in Thread] |