tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Basic patch for passing W9X short DOS paths to TCC.


From: Ivo
Subject: Re: [Tinycc-devel] Basic patch for passing W9X short DOS paths to TCC.
Date: Tue, 14 Apr 2009 17:36:41 +0100
User-agent: KMail/1.9.3

On Tuesday 14 April 2009 17:07, lostgallifreyan wrote:
> What I have considered is using GetLongFileName() in Kernel32.dll to pass
> long names as specified in the file system. It's a neat answer but only
> for W98, no good in W95 (and I think redundant in W2K and WXP). Another
> thing is to add some other option for assembler code files, such as .asm
> (or .ASM, same thing) for those requiring preprocessing in Windows, and
> .s (or .S) to be converted in DOS shortname paths so TCC makes the usual
> interpretation of .s NOT being preprocessed. But I don't know ASM, it's
> not my call what decision gets made there, and GCC doesn't recognise the
> extension ASM anyway. For now, if I were to try assembler code I'd just
> watch carefully what was put into my .s (or .S) files, and make batch
> scripts with the right extension case for TCC.

Why don't you just implement gcc's -x command line option instead of this 
ifdeffery? It's also useful on other platforms and it solves the .s/.S 
problem, too:

-x c
-x cpp-output
-x assembler
-x assembler-with-cpp

etc...

--Ivo




reply via email to

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