tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Staging for -m32 option


From: grischka
Subject: Re: [Tinycc-devel] Staging for -m32 option
Date: Mon, 06 Dec 2010 16:50:34 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Henry Kroll wrote:
This one is much less horrible. Just create a link to tcc.exe on other
platform.
http://codepad.org/iRUwi89I

"link" does not work on windows.  Also re-executing "tcc" can cause
an infinite loop, no?

Also, try using execvp(prog, argv) which doesn't call the shell and
avoids problems with spaces in filenames. (in process.h on windows)

Also, please put the stuff in its own function, not into the switch
directly.  Like

            case TCC_OPTION_m:
                exec_other_tcc(atoi(optarg), argv-1);
                break;

Other than that it looks ok now from the required code lines,
just not from the features yet ;)

--- grischka



reply via email to

[Prev in Thread] Current Thread [Next in Thread]